OSDN Git Service

ca62ed00740cc51df1c951a82a8893861d479ac1
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
2
3         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
4
5 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6
7         * double-int.h (fit_double_type): Remove declaration.
8         * double-int.c (fit_double_type): Remove function.
9         * tree.h (int_fits_type_p): Adjust prototype.
10         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
11         instead of fit_double_type.
12         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
13         instead of fit_double_type and build_int_cst_wide.
14         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
15         instead of fit_double_type and build_int_cst_wide.
16         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
17         of fit_double_type.
18
19 2010-07-05  Jan Hubicka  <jh@suse.cz>
20
21         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
22         in_other_partition.
23         * lto-cgraph.c (referenced_from_other_partition_p,
24         reachable_from_other_partition_p): Use in_other_partition flags.
25         (output_node, output_varpool_node): COMDAT nodes always have private
26         copies and thus are never used from other partition.
27
28 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
29
30         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
31         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
32         * config/ia64/ia64.c Include reload.h.
33         (ia64_memory_move_cost): New function.
34         (TARGET_MEMORY_MOVE_COST): Define.
35         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
36         memory_move_cost.
37
38 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
39
40         PR middle-end/42505
41         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
42         comments about cost model.
43         (try_add_cand_for):  Add second strategy for choosing initial set
44         based on original IVs, controlled by ORIGINALP argument.
45         (get_initial_solution): Add ORIGINALP argument.
46         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
47         (find_optimal_iv_set): Try two different strategies for choosing
48         the IV set, and return the one with lower cost.
49
50 2010-07-05  Richard Guenther  <rguenther@suse.de>
51
52         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy
53         alias info.
54
55 2010-07-05  Richard Guenther  <rguenther@suse.de>
56
57         * tree.c (reference_alias_ptr_type): New function.
58         * tree.h (reference_alias_ptr_type): Declare.
59         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
60         allow non-TARGET_MEM_REF new refs.
61         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
62         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
63         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
64         (create_mem_ref): Get alias pointer type.  Adjust calls to
65         create_mem_ref_raw.
66         (maybe_fold_tmr): Likewise.
67         * tree-flow.h (create_mem_ref): Adjust prototype.
68
69 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
70
71         PR c++/44808
72         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
73         *from_p is VAR_DECL.
74
75 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
76
77         * tree.h (build_call_list): Remove.
78         * tree.c (build_call_list): Remove.
79
80 2010-07-05  Richard Guenther  <rguenther@suse.de>
81
82         * double-int.h (double_int_sub): Declare.
83         * double-int.c (double_int_sub): New function.
84         * dwarf2out.c (field_byte_offset): Use it.
85         * fixed-value.c (do_fixed_add): Likewise.
86         (do_fixed_multiply): Likewise.
87         (do_fixed_divide): Likewise.
88         * tree-predcom.c (add_ref_to_chain): Likewise.
89         (determine_roots_comp): Likewise.
90         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
91
92 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
93
94         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
95         implementations.
96
97 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
98
99         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
100         * arm-modes.def (CC_NOTB): Don't define.
101         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
102         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
103         (LTUGEU): New code_iterator.
104         (cnb, optab): New corresponding code_attrs.
105         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
106         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
107         using LTUGEU.
108         (addsi3_carryin_shift_<optab>): Likewise.
109         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
110         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
111         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
112         (subsi3_compare): Renamed from subsi3_compare0_c.
113         Change CC_NOTB to CC.
114         (arm_subsi3_insn): Allow constants for operand 0.
115         (compare_scc peephole for eq case): New.
116         (compare_scc splitters): Change CC_NOTB to CC.
117
118 2010-07-05  Richard Guenther  <rguenther@suse.de>
119
120         * tree-ssa-loop-im.c (for_each_index): Do not handle
121         ALIGN_INDIRECT_REF.
122         (gen_lsm_tmp_name): Likewise.
123         * tree-dump.c (dequeue_and_dump): Likewise.
124         * tree-pretty-print.c (dump_generic_node): Likewise.
125         (op_code_prio): Likewise.
126         (op_symbol_code): Likewise.
127         * tree.c (staticp): Likewise.
128         (build1_stat): Likewise.
129         * tree.h (INDIRECT_REF_P): Likewise.
130         * fold-const.c (maybe_lvalue_p): Likewise.
131         (operand_equal_p): Likewise.
132         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
133         (ao_ref_init_from_vn_reference): Likewise.
134         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
135         (find_interesting_uses_address): Likewise.
136         * dwarf2out.c (loc_list_from_tree): Likewise.
137         * gimplify.c (gimplify_expr): Likewise.
138         * tree-eh.c (tree_could_trap_p): Likewise.
139         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
140         * cfgexpand.c (expand_debug_expr): Likewise.
141         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
142         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
143         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
144         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
145         * tree-ssa-operands.c (get_expr_operands): Likewise.
146         * expr.c (safe_from_p): Likewise.
147         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
148         * tree-vect-data-refs.c (vect_setup_realignment): Build
149         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
150         * tree-vect-stmts.c (vectorizable_load): Likewise.
151         * tree.def (ALIGN_INDIRECT_REF): Remove.
152
153 2010-07-05  Richard Guenther  <rguenther@suse.de>
154
155         PR tree-optimization/44784
156         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
157         for inserted stmts.
158         (find_or_generate_expression): Fix SCCVN insertion check.
159
160 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
161
162         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
163         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
164         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
165         directives.
166
167 2010-07-05  Ira Rosen  <irar@il.ibm.com>
168
169         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
170         statements that are not vectorized.
171         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
172         in INSIDE_COST.
173
174 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
175
176         PR bootstrap/44820
177         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
178
179 2010-07-05  Richard Guenther  <rguenther@suse.de>
180
181         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
182         RESULT_DECLs properly.
183
184 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
185
186         PR rtl-optimization/44695
187         * config/i386/i386.md (extract_code): Removed.
188         (<u>divmodqi4): Likewise.
189         (divmodqi4): New.
190         (udivmodqi4): Likewise.
191         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
192         (udivmodhiqi3): Likewise.
193
194 2010-07-04  Jan Hubicka  <jh@suse.cz>
195
196         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
197
198 2010-07-04  Jan Hubicka  <jh@suse.cz>
199
200         * cgraphunit.c (init_cgraph): Only initialize dump file if it
201         is not already initialized.
202
203 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
204
205         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
206         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
207         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
208         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
209         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
210         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
211         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
212         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
213         (sync_new_nand_optab): Redefine as macros.
214         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
215         Delete.
216         (direct_optab_index): New enum.
217         (direct_optab_d): New structure.
218         (direct_optab): New typedef.
219         (direct_optab_table): Declare.
220         (direct_optab_handler, set_direct_optab_handler): New functions.
221         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
222         (sync_lock_release_optab): New macros.
223         * optabs.c (direct_optab_table): New variable.
224         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
225         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
226         cmpstr_optab and cmpstrn_optab.
227         (emit_conditional_move): Likewise for movcc_optab.
228         (can_conditionally_move_p): Likewise for movcc_gen_code.
229         (init_insn_codes): Clear direct_optab_table.
230         (init_optabs): Don't initialize the new "direct optabs" here.
231         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
232         vcond_gen_code.
233         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
234         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
235         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
236         (expand_sync_operation): Likewise other sync_*_optabs.
237         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
238         to sync_compare_and_swap_optab.
239         (expand_sync_lock_test_and_set): Use direct_optab_handler for
240         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
241         to the names of both.
242         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
243         cmpstr_optab and cmpstrn_optab.
244         (expand_builtin_lock_release): Likewise sync_lock_release.
245         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
246         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
247         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
248         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
249         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
250         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
251         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
252         (sync_lock_test_and_set, sync_lock_release): Delete.
253         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
254         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
255         * genopinit.c (optabs): Use set_direct_optab_handler for the new
256         macro optabs.
257         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
258         the "optab" local variable.  Use direct_optab_handler for optab and
259         sync_compare_and_swap_optab.
260         * reload1.c (reload_in_optab, reload_out_optab): Delete.
261         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
262         reload_in_optab and reload_out_optab.
263         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
264         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
265         * config/pa/pa.c (pa_secondary_reload): Likewise.
266         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
267         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
268         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
269         (VMSupportsCS8_builtin): Likewise.
270
271 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
272
273         * optabs.h (optab_handlers): Change type of insn_code to int.
274         (optab_handler, set_optab_handler, convert_optab_handler)
275         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
276         CODE_FOR_nothing".
277         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
278         (init_insn_codes): Zero both the above arrays.
279         (init_optabs): Never call init_insn_codes first time around.
280
281 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
282
283         * optabs.h (optab_handler, convert_optab_handler): Turn into
284         inline functions that return an insn code.
285         (set_optab_handler, set_convert_optab_handler): New functions.
286         * builtins.c: Replace optab_handler(X)->insn_code with
287         optab_handler or set_optab_handler thoughout.  Likewise
288         convert_optab_handler(X)->insn_code with convert_optab_handler
289         and set_convert_optab_handler.
290         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
291         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
292         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
293         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
294         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
295         config/spu/spu.c: Likewise.
296
297 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
298
299         PR target/44531
300         * config.gcc (sh*-*-*): Use regular expressions instead of
301         the 'i' modifier for sed substitutions.
302
303 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
304
305         * gimple.c (gimple_body): Comments added.
306
307 2010-07-04  Richard Guenther  <rguenther@suse.de>
308
309         PR middle-end/44809
310         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
311         of an INDIRECT_REF.
312
313 2010-07-04  Richard Guenther  <rguenther@suse.de>
314
315         PR tree-optimization/44479
316         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
317         extra SSA name copy statements which preserves points-to
318         information.
319         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
320         Copy points-to information for all pointers.  Properly handle
321         MEM_REFs.
322         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
323         copy statements.
324         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
325         dependency.
326
327 2010-07-04  Richard Guenther  <rguenther@suse.de>
328
329         PR middle-end/44785
330         * tree-inline.c (initialize_inlined_parameters): Do not
331         re-use pointer-map slot over remap_type call.
332
333 2010-07-04  Richard Guenther  <rguenther@suse.de>
334
335         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
336
337 2010-07-04  Richard Guenther  <rguenther@suse.de>
338
339         PR tree-optimization/44656
340         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
341         again after value-replacing in the defintions lhs.
342
343 2010-07-04  Ira Rosen  <irar@il.ibm.com>
344             Revital Eres  <eres@il.ibm.com>
345
346         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
347         Document new arguments.
348         * doc/tm.texi: Regenerate.
349         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
350         Handle unaligned store.
351         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
352         * target.def (builtin_vectorization_cost): Add new arguments.
353         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
354         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
355         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
356         (vect_vfa_segment_size): Fix indentation.
357         * tree-vectorizer.h (struct _vect_peel_info): New.
358         (struct _vect_peel_extended_info): New.
359         (struct _loop_vec_info): Add new field for peeling hash table and a
360         macro for its access.
361         (VECT_MAX_COST): Define.
362         (vect_get_load_cost): Declare.
363         (vect_get_store_cost, vect_get_known_peeling_cost,
364         vect_get_single_scalar_iteraion_cost): Likewise.
365         (vect_supportable_dr_alignment): Add new argument.
366         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
367         field.
368         (destroy_loop_vec_info): Free peeling hash table.
369         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
370         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
371         vect_analyze_slp. Fix indentation.
372         (vect_get_single_scalar_iteraion_cost): New function.
373         (vect_get_known_peeling_cost): Likewise.
374         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
375         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
376         statement. Move outside cost calculation inside unknown peeling case.
377         Call vect_get_known_peeling_cost for known amount of peeling.
378         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
379         reference to the print message of forced alignment.
380         (vect_verify_datarefs_alignment): Update call to
381         vect_supportable_dr_alignment.
382         (vect_get_data_access_cost): New function.
383         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
384         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
385         vect_peeling_hash_choose_best_peeling): Likewise.
386         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
387         to store all the accesses in the loop and find best possible access to
388         align using peeling for known alignment case. For unknown alignment
389         check if stores are preferred or if peeling is worthy.
390         (vect_find_same_alignment_drs): Analyze pairs of loads too.
391         (vect_supportable_dr_alignment): Add new argument and check aligned
392         accesses according to it.
393         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
394         (cost_for_stmt): Call vect_get_stmt_cost.
395         (vect_model_simple_cost): Likewise.
396         (vect_model_store_cost): Call vect_get_stmt_cost. Call
397         vect_get_store_cost to calculate the cost of the statement.
398         (vect_get_store_cost): New function.
399         (vect_model_load_cost): Call vect_get_stmt_cost. Call
400         vect_get_load_cost to calculate the cost of the statement.
401         (vect_get_load_cost): New function.
402         (vectorizable_store): Update call to vect_supportable_dr_alignment.
403         (vectorizable_load): Likewise.
404         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
405         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
406         arguments. Handle unaligned store.
407         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
408         (rs6000_builtin_support_vector_misalignment): Return true for word and
409         double word alignments for VSX.
410         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
411         vect_supportable_dr_alignment and builtin_vectorization_cost.
412
413 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
414
415         PR target/44597
416         * config/pa/predicates.md (prefetch_cc_operand): Remove.
417         (prefetch_nocc_operand): Likewise.
418         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
419         (prefetch_20): New insn.
420         (prefetch_cc): Remove.
421         (prefetch_nocc): Likewise.
422
423 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
424
425         * expr.c (vector_mode_valid_p): Move to c-common.c.
426         * expr.h (vector_mode_valid_p): Do not declare here.
427         * system.h: Poison GCC_EXPR_H in front-ends.
428         * Makefile.in: Update dependencies.
429
430 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
431
432         PR target/44705
433         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
434
435 2010-07-03  Jan Hubicka  <jh@suse.cz>
436
437         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
438         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
439         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
440         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
441         Likewise.
442
443         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
444         Update timevars.V
445         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
446         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
447         TV_IPA_LTO_DECL_OUT): New.
448         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
449
450 2010-07-03  Jan Hubicka  <jh@suse.cz>
451
452         * ipa-inline.c (update_edge_key): Break out from ...
453         update_callers_keys): ... here;
454         (update_callee_keys): Update only the edges from caller to callee.
455         (update_all_calle_keys): Do what update_calle_keys did.
456         (decide_inlining_of_small_functions): Avoid recomputing of all
457         callees when badness increase.
458
459 2010-07-03  Jie Zhang  <jie@codesourcery.com>
460
461         * config/arm/arm.c (arm_attr_length_move_neon): New.
462         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
463         * config/arm/neon.md (define_mode_attr V_slen): Remove.
464         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
465         to compute length attribute.
466
467 2010-07-03  Jie Zhang  <jie@codesourcery.com>
468
469         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
470         as predicate for operand 1 and remove its constraint.
471         * config/arm/predicates.md (vfp_register_operand): New.
472         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
473         (*push_fp_multi): Likewise.
474
475 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
476
477         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
478
479 2010-07-03  Jan Hubicka  <jh@suse.cz>
480
481         * config/i386/i386.c (override_options): Revert accidental commit.
482
483 2010-07-02  Le-Chun Wu  <lcwu@google.com>
484
485         PR c++/44128
486         * doc/invoke.texi: Update documentation of -Wshadow.
487
488 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
489             Julian Brown  <julian@codesourcery.com>
490             Sandra Loosemore <sandra@codesourcery.com>
491
492         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
493         comparisons.  Adjust to take both operands.
494         (arm_select_cc_mode): Handle DImode comparisons.
495         (arm_gen_compare_reg): Generate a scratch register for DImode
496         comparisons which require one.  Use xor for Thumb equality checks.
497         (arm_const_double_by_immediates): New.
498         (arm_print_operand): Allow 'Q' and 'R' for constants.
499         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
500         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
501         arm_canonicalize_comparison.
502         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
503         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
504         prototype.
505         (arm_const_double_by_immediates): Declare.
506         * config/arm/constraints.md (Di): New constraint.
507         * config/arm/predicates.md (arm_immediate_di_operand)
508         (arm_di_operand, cmpdi_operand): New.
509         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
510         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
511         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
512         (cstoredi4): Handle non-Cirrus also.
513
514 2010-07-02  Julian Brown  <julian@codesourcery.com>
515             Sandra Loosemore <sandra@codesourcery.com>
516
517         PR target/43703
518         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
519         (smax<mode>3): Disable for NEON float modes when
520         flag_unsafe_math_optimizations is false.
521         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
522         (*mul<mode>3_neon)
523         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
524         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
525         for NEON float modes when flag_unsafe_math_optimizations is false.
526         (quad_halves_<code>v4sf): Only enable if
527         flag_unsafe_math_optimizations is true.
528         * doc/invoke.texi (ARM Options): Add note about floating point
529         vectorization requiring -funsafe-math-optimizations.
530
531 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
532             Julian Brown  <julian@codesourcery.com>
533
534         * config/arm/neon.md (UNSPEC_VABA): Delete.
535         (UNSPEC_VABAL): Delete.
536         (UNSPEC_VABS): Delete.
537         (UNSPEC_VMUL_N): Delete.
538         (adddi3_neon): New.
539         (subdi3_neon): New.
540         (mul<mode>3add<mode>_neon): Make the pattern named.
541         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
542         (neon_vadd<mode>): Replace with define_expand, and move the remaining
543         unspec parts...
544         (neon_vadd<mode>_unspec): ...to this.
545         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
546         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
547         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
548         (neon_vaba<mode>): Rewrite in terms of vabd.
549         (neon_vabal<mode>): Rewrite in terms of vabdl.
550         (neon_vabs<mode>): Rewrite without unspec.
551         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
552         (*arm_subdi3): Likewise.
553         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
554         No_op attribute to disable assembly output checks.
555         * config/arm/arm_neon.h: Regenerated.
556         * doc/arm-neon-intrinsics.texi: Regenerated.
557
558 2010-07-02  Jan Hubicka  <jh@suse.cz>
559
560         * ipa-split.c (split_function): For aggregate values, set the return
561         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
562         *<retval> = fncall.part ().
563         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
564
565 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
566
567         * config/arm/neon.md (UNSPEC_VAND): Delete.
568         (UNSPEC_VBIC): Delete.
569         (UNSPEC_VCLZ): Delete.
570         (UNSPEC_VCNT): Delete.
571         (UNSPEC_VEOR): Delete.
572         (UNSPEC_VORN): Delete.
573         (UNSPEC_VORR): Delete.
574         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
575         core registers too.
576         (anddi3_neon): Likewise.
577         (orndi3_neon): Likewise.
578         (bicdi3_neon): Likewise.
579         (xordi3_neon): Likewise.
580         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
581         rid of unspec and handle unused operand.
582         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
583         * config/arm/predicates.md (imm_for_neon_logic_operand):
584         Require TARGET_NEON.
585         (imm_for_neon_inv_logic_operand): Likewise.
586         * config/arm/arm.md (define_split for logical_binary_operator):
587         Disable for NEON registers.
588         (anddi3): Add new define_expand, and rename the insn.  Disable
589         this insn for NEON, where anddi3_neon now applies.
590         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
591         (iordi3): As for anddi3.
592         (xordi3): Likewise.
593         * config/arm/neon.ml (Vand): Split DImode variants and mark them
594         as No_op to disable testing for exact instruction match.
595         (Vorr): Likewise.
596         (Veor): Likewise.
597         (Vbic): Likewise.
598         (Vorn): Likewise.
599         * config/arm/arm_neon.h: Regenerated.
600         * doc/arm-neon-intrinsics.texi: Regenerated.
601
602 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
603
604         * expr.h (emit_stack_probe): Declare.
605         * explow.c (emit_stack_probe): Make global.
606         (anti_adjust_stack_and_probe): Fix comments.
607         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
608         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
609         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
610         * config/sparc/sparc.c: Include except.h.
611         (sparc_emit_probe_stack_range): New function.
612         (output_probe_stack_range): Likewise.
613         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
614         built-in stack checking is enabled.
615         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
616         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
617         (probe_stack_range): New insn.
618
619 2010-07-02  Richard Guenther  <rguenther@suse.de>
620
621         PR target/43958
622         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
623         for argument alignment.
624
625 2010-07-02  Jan Hubicka  <jh@suse.cz>
626
627         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
628         walk backwards from entry_bb to check only those basic block of header
629         that might lead to execution of split part.
630         (consider_split) ... here.
631         (find_return_bb): Allow assignment in return BB.
632         (find_retval): New.
633         (split_function): Fix name of cloned function; take care of updating
634         return value in return_bb containing move.
635
636 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
637
638         PR target/44771
639         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
640         used variable insn.
641
642 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
643
644         * implicit-zee.c (combine_reaching_defs): Fix long lines.
645         (is_set_with_extension_DI): Delete.
646         (struct zero_extend_info): New structure.
647         (add_removable_zero_extend): New function.
648         (find_removable_zero_extends): Use note_stores to find SETs.
649         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
650
651 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
652
653         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
654         is_miss_rate_acceptable. Pull total_positions computation
655         out of the loops.  Early return if miss_positions exceeds
656         the acceptable threshold.
657         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
658         is_miss_rate_acceptable after renaming of compute_miss_rate.
659
660 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
661
662         PR middle-end/44576
663         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
664         of 1000) for miss rate if the address diference is greater than or
665         equal to the cache line size (the two reference will never hit the
666         same cache line).
667
668 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
669
670         PR target/42835
671         * config/arm/arm-modes.def (CC_NOTB): New mode.
672         * config/arm/arm.c (get_arm_condition_code): Handle it.
673         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
674         * config/arm/arm.md (subsi3_compare0_c): New pattern.
675         (compare_scc): Now a define_and_split.  Add a number of extra
676         splitters before it.
677
678         PR target/42172
679         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
680         and ZERO_EXTEND.
681         (arm_rtx_costs_1): Likewise.
682         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
683         * config/arm/arm.md (is_arch6): New attribute.
684         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
685         extendqisi2): Tighten the code somewhat, avoiding invalid
686         RTL to occur in the expander patterns.
687         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
688         (thumb1_zero_extendhisi2_v6): Delete.
689         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
690         (thumb1_extendhisi2_v6): Delete.
691         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
692         (thumb1_extendqisi2_v6): Delete.
693         (zero_extendhisi2 for register input splitter): New.
694         (zero_extendqisi2 for register input splitter): New.
695         (thumb1_extendhisi2 for register input splitter): New.
696         (extendhisi2 for register input splitter): New.
697         (extendqisi2 for register input splitter): New.
698         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
699         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
700         and add support for a register alternative requiring a split.
701         (thumb1_zero_extendqisi2): Likewise.
702         (arm_zero_extendqisi2): Likewise.
703         (arm_extendhisi2): Likewise.
704         (arm_extendqisi2): Likewise.
705
706 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
707
708         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
709         instead of an unspec.
710         (neon_expand_vector_init): Likewise.
711         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
712         (UNSPEC_VDUP_LANE): Delete.
713         (UNSPEC VDUP_N): Delete.
714         (UNSPEC_VGET_HIGH): Delete.
715         (UNSPEC_VGET_LANE): Delete.
716         (UNSPEC_VGET_LOW): Delete.
717         (UNSPEC_VMVN): Delete.
718         (UNSPEC_VSET_LANE): Delete.
719         (V_double_vector_mode): New.
720         (vec_set<mode>_internal): Make code emitted match that for the
721         corresponding intrinsics.
722         (vec_setv2di_internal): Likewise.
723         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
724         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
725         (neon_vset_lane<mode>): Combine double and quad patterns and
726         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
727         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
728         (neon_vdup_n<mode>): Rewrite RTL without unspec.
729         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
730         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
731         with neon_vdup_lanev2di, adjusting the pattern from the latter
732         to be predicable for consistency.
733         (neon_vdup_lane<mode>_internal): New.
734         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
735         to avoid using an unspec.
736         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
737         (neon_vdup_lanev2di): Turn into a define_expand.
738         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
739         (neon_vget_high<mode>): Replace with....
740         (neon_vget_highv16qi): New pattern using canonical RTL.
741         (neon_vget_highv8hi): Likewise.
742         (neon_vget_highv4si): Likewise.
743         (neon_vget_highv4sf): Likewise.
744         (neon_vget_highv2di): Likewise.
745         (neon_vget_low<mode>): Replace with....
746         (neon_vget_lowv16qi): New pattern using canonical RTL.
747         (neon_vget_lowv8hi): Likewise.
748         (neon_vget_lowv4si): Likewise.
749         (neon_vget_lowv4sf): Likewise.
750         (neon_vget_lowv2di): Likewise.
751
752         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
753         test for this emitting vmov.
754         (Vset_lane): Likewise.
755         (Vdup_n): Likewise.
756         (Vmov_n): Likewise.
757
758         * doc/arm-neon-intrinsics.texi: Regenerated.
759
760 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
761
762         * config/arm/neon.md (vec_extractv2di): Correct error in register
763         numbering to reconcile with neon_vget_lanev2di.
764
765 2010-07-02  Richard Guenther  <rguenther@suse.de>
766
767         * tree-ssa-structalias.c (pt_solution_set_var): New function.
768         * tree-ssa-alias.h (pt_solution_set_var): Declare.
769         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
770         points-to information.
771
772 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
773
774         * config/s390/s390.c (override_options): Adopt prefetching
775         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
776
777 2010-07-02  Jan Hubicka  <jh@suse.cz>
778
779         * df-problems.c (df_kill_notes): Do not collect dead  notes.
780         (df_set_note): Just call add_reg_note.
781         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
782         df_create_unused_note): Do not deal with lists of old notes.
783         (df_note_bb_compute): Likewise.
784
785 2010-07-02  Richard Guenther  <rguenther@suse.de>
786
787         * tree-ssa-structalias.c (find_func_aliases): Handle
788         pointer alignment via BIT_AND_EXPR.
789         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
790
791 2010-07-02  Richard Guenther  <rguenther@suse.de>
792
793         * tree-data-ref.c (initialize_data_dependence_relation): Handle
794         mismatching number of dimensions properly.
795
796 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
797
798         PR target/44707
799         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
800         (lo_sum (high ...) ...) patterns generated by earlier passes.
801
802 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
803
804         * doc/install.texi (Prerequisites): Document Perl requirement on
805         Solaris 2.
806         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
807
808 2010-07-02  Richard Guenther  <rguenther@suse.de>
809
810         PR middle-end/44777
811         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
812
813 2010-07-02  Jan Hubicka  <jh@suse.cz>
814
815         PR middle-end/44706
816         * predict.c (predict_paths_for_bb): Handle case when control dependence
817         BB has only abnormal edges.
818
819 2010-07-02  Richard Guenther  <rguenther@suse.de>
820
821         PR tree-optimization/44748
822         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
823         the embedded conversion in MEM_REFs.
824
825 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
826
827         * reload.c: Include toplev.h.
828         * recog.c:  Likewise.
829         * Makefile.in: Adjust dependencies.
830
831 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
832
833         PR debug/44694
834         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
835         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
836
837 2010-07-01  Richard Guenther  <rguenther@suse.de>
838
839         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
840         types for offsets.
841
842 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
843
844         PR target/44732
845         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
846         Fix argument types.
847
848 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
849
850         PR target/44727
851         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
852         Make sure operand 0 dies.
853
854 2010-07-01  Richard Guenther  <rguenther@suse.de>
855
856         PR middle-end/42834
857         PR middle-end/44468
858         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
859         * doc/generic.texi (References to storage): Document MEM_REF.
860         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
861         (print_call_name): Likewise.
862         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
863         (build_simple_mem_ref_loc): New function.
864         (mem_ref_offset): Likewise.
865         * tree.h (build_simple_mem_ref_loc): Declare.
866         (build_simple_mem_ref): Define.
867         (mem_ref_offset): Declare.
868         * fold-const.c: Include tree-flow.h.
869         (operand_equal_p): Handle MEM_REF.
870         (build_fold_addr_expr_with_type_loc): Likewise.
871         (fold_comparison): Likewise.
872         (fold_unary_loc): Fold
873         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
874         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
875         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
876         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
877         (ptr_deref_may_alias_ref_p_1): Likewise.
878         (ao_ref_base_alias_set): Properly differentiate base object for
879         offset and TBAA.
880         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
881         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
882         (indirect_refs_may_alias_p): Likewise.
883         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
884         chasing code.
885         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
886         (call_may_clobber_ref_p_1): Likewise.
887         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
888         * expr.c (expand_assignment): Handle MEM_REF.
889         (store_expr): Handle MEM_REFs from STRING_CSTs.
890         (store_field): If expanding a MEM_REF of a non-addressable
891         decl use bitfield operations.
892         (get_inner_reference): Handle MEM_REF.
893         (expand_expr_addr_expr_1): Likewise.
894         (expand_expr_real_1): Likewise.
895         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
896         * alias.c (ao_ref_from_mem): Handle MEM_REF.
897         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
898         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
899         (dr_analyze_indices): Likewise.
900         (dr_analyze_alias): Likewise.
901         (object_address_invariant_in_loop_p): Likewise.
902         * gimplify.c (mark_addressable): Handle MEM_REF.
903         (gimplify_cond_expr): Build MEM_REFs.
904         (gimplify_modify_expr_to_memcpy): Likewise.
905         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
906         (gimple_fold_indirect_ref): Adjust.
907         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
908         * tree.def (MEM_REF): New tree code.
909         * tree-dfa.c: Include toplev.h.
910         (get_ref_base_and_extent): Handle MEM_REF.
911         (get_addr_base_and_unit_offset): New function.
912         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
913         * gimple-fold.c (may_propagate_address_into_dereference): Handle
914         MEM_REF.
915         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
916         accesses if the array has just one dimension.  Remove always true
917         parameter.  Do not require type compatibility here.
918         (maybe_fold_offset_to_component_ref): Remove.
919         (maybe_fold_stmt_indirect): Remove.
920         (maybe_fold_reference): Remove INDIRECT_REF handling.
921         Fold back to non-MEM_REF.
922         (maybe_fold_offset_to_address): Simplify.  Deal with type
923         mismatches here.
924         (maybe_fold_reference): Likewise.
925         (maybe_fold_stmt_addition): Likewise.  Also handle
926         &ARRAY + I in addition to &ARRAY[0] + I.
927         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
928         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
929         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
930         * tree-ssa.c (useless_type_conversion_p): Make most pointer
931         conversions useless.
932         (warn_uninitialized_var): Handle MEM_REF.
933         (maybe_rewrite_mem_ref_base): New function.
934         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
935         to SSA form.
936         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
937         INDIRECT_REF handling.
938         (copy_tree_body_r): Handle MEM_REF.
939         * gimple.c (is_gimple_addressable): Adjust.
940         (is_gimple_address): Likewise.
941         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
942         invariant base are invariant.
943         (is_gimple_min_lval): Adjust.
944         (is_gimple_mem_ref_addr): New function.
945         (get_base_address): Handle MEM_REF.
946         (count_ptr_derefs): Likewise.
947         (get_base_loadstore): Likewise.
948         * gimple.h (is_gimple_mem_ref_addr): Declare.
949         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
950         * tree-cfg.c (verify_address): New function, split out from ...
951         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
952         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
953         INDIRECT_REFs.
954         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
955         INDIRECT_REF.  Allow conversions.
956         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
957         a register does not change its size.
958         (verify_types_in_gimple_reference): Verify MEM_REF.
959         (verify_gimple_assign_single): Disallow INDIRECT_REF.
960         Handle MEM_REF.
961         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
962         New.
963         (mark_address_taken): Handle MEM_REF.
964         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
965         (get_asm_expr_operands): Pass opf_not_non_addressable.
966         (get_expr_operands): Handle opf_[not_]non_addressable.
967         Handle MEM_REF.  Remove INDIRECT_REF handling.
968         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
969         (search_for_addr_array): Likewise.
970         (check_array_bounds): Likewise.
971         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
972         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
973         (ref_always_accessed_p): Likewise.
974         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
975         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
976         Handle MEM_REF.
977         * cgraphbuild.c (mark_load): Properly check for NULL result
978         from get_base_address.
979         (mark_store): Likewise.
980         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
981         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
982         handling for MEM_REF.
983         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
984         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
985         * builtins.c (stabilize_va_list_loc): Use the function ABI
986         valist type if we couldn't canonicalize the argument type.
987         Always dereference with the canonical va-list type.
988         (maybe_emit_free_warning): Handle MEM_REF.
989         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
990         memmove to memcpy.
991         * builtins.c (fold_builtin_memory_op): Use ref-all types
992         for all memcpy foldings.
993         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
994         (build_outer_var_ref): Likewise.
995         (scan_omp_1_op): Likewise.
996         (lower_rec_input_clauses): Likewise.
997         (lower_lastprivate_clauses): Likewise.
998         (lower_reduction_clauses): Likewise.
999         (lower_copyprivate_clauses): Likewise.
1000         (expand_omp_atomic_pipeline): Likewise.
1001         (expand_omp_atomic_mutex): Likewise.
1002         (create_task_copyfn): Likewise.
1003         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1004         Remove old union trick.  Initialize constant offsets.
1005         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
1006         INDIRECT_REF.  Init base_alias_set properly.
1007         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1008         (vn_reference_fold_indirect): Adjust for MEM_REFs.
1009         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
1010         for ARRAY_REFs.
1011         (may_insert): Remove.
1012         (visit_reference_op_load): Do not test may_insert.
1013         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1014         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1015         a field to store the constant offset this op applies.
1016         (run_scc_vn): Adjust prototype.
1017         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1018         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1019         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
1020         bother about volatile qualifiers on pointers.
1021         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1022         * tree-ssa-loop-ivopts.c
1023         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1024         (strip_offset_1): Likewise.
1025         (find_interesting_uses_address): Replace INDIRECT_REF handling with
1026         MEM_REF handling.
1027         (get_computation_cost_at): Likewise.
1028         * ipa-pure-const.c (check_op): Handle MEM_REF.
1029         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1030         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1031         and constants.
1032         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1033         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1034         (eliminate_local_variables_1): Likewise.
1035         (create_call_for_reduction_1): Likewise.
1036         (create_loads_for_reductions): Likewise.
1037         (create_loads_and_stores_for_name): Likewise.
1038         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1039         (ssa_accessed_in_tree): Handle MEM_REF.
1040         (ssa_accessed_in_assign_rhs): Likewise.
1041         (update_type_size): Likewise.
1042         (analyze_accesses_for_call_stmt): Likewise.
1043         (analyze_accesses_for_assign_stmt): Likewise.
1044         (transform_access_sites): Likewise.
1045         (transform_allocation_sites): Likewise.
1046         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1047         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1048         not handle INDIRECT_REF.
1049         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1050         (cond_store_replacement): Likewise.
1051         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1052         MEM_REF, no not handle INDIRECT_REFs.
1053         (insert_into_preds_of_block): Properly initialize avail.
1054         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
1055         for ARRAY_REFs.  Properly handle reference lookups that
1056         require a bit re-interpretation.
1057         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
1058         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1059         (build_ref_for_offset_1): Remove.
1060         (build_ref_for_offset): Build MEM_REFs.
1061         (gate_intra_sra): Disable for now.
1062         (sra_ipa_modify_expr): Handle MEM_REF.
1063         (ipa_early_sra_gate): Disable for now.
1064         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1065         MEM_REF handling.
1066         (disqualify_base_of_expr): Likewise.
1067         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1068         MEM_REF handling.
1069         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1070         Use mem_ref_offset.  Remove bogus folding.
1071         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1072         (make_fancy_name_1): Add support for MEM_REF.
1073         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1074         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1075         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1076         (compute_complex_ancestor_jump_func): Likewise.
1077         (ipa_analyze_virtual_call_uses): Likewise.
1078         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1079         INDIRECT_REF folding with more generalized MEM_REF folding.
1080         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1081         (forward_propagate_addr_into_variable_array_index): Also handle
1082         &ARRAY + I in addition to &ARRAY[0] + I.
1083         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1084         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1085         creates assignments with overlap.
1086         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1087         (get_frame_field): Likewise.
1088         (get_nonlocal_debug_decl): Likewise.
1089         (convert_nonlocal_reference_op): Likewise.
1090         (struct nesting_info): Add mem_refs pointer-set.
1091         (create_nesting_tree): Allocate it.
1092         (convert_local_reference_op): Insert to be folded mem-refs.
1093         (fold_mem_refs): New function.
1094         (finalize_nesting_tree_1): Perform defered folding of mem-refs
1095         (free_nesting_tree): Free the pointer-set.
1096         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1097         (vectorizable_load): Likewise.
1098         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1099         (propagate_with_phi): Likewise.
1100         * tree-object-size.c (addr_object_size): Handle MEM_REFs
1101         instead of INDIRECT_REFs.
1102         (compute_object_offset): Handle MEM_REF.
1103         (plus_stmt_object_size): Handle MEM_REF.
1104         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1105         for &MEM_REF.
1106         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1107         (symbol_marked_for_renaming): Likewise.
1108         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1109         (fold-const.o): Add $(TREE_FLOW_H).
1110         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1111         (find_func_clobbers): Likewise.
1112         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1113         (decompose_access): Likewise.
1114         (replace_field_acc): Likewise.
1115         (replace_field_access_stmt): Likewise.
1116         (insert_new_var_in_stmt): Likewise.
1117         (get_stmt_accesses): Likewise.
1118         (reorg_structs_drive): Disable.
1119         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1120         (ix86_canonical_va_list_type): Likewise.
1121
1122 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1123
1124         PR other/44566
1125         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1126         * target.def (struct gcc_target): Replace enum reg_class with
1127         reg_class_t in hook argument / return types.
1128         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1129         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1130         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1131         * targhooks.h (default_branch_target_register_class): Likewise.
1132         (default_ira_cover_classes, default_secondary_reload): Likewise.
1133         (default_memory_move_cost, default_register_move_cost): Likewise.
1134         * targhooks.c (default_branch_target_register_class): Likewise.
1135         (default_ira_cover_classes, default_secondary_reload): Likewise.
1136         (default_memory_move_cost, default_register_move_cost): Likewise.
1137         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1138         * bt-load.c (branch_target_load_optimize): Likewise.
1139         * ira.c (setup_cover_and_important_classes): Likewise.
1140         * ira-costs.c (copy_cost): Likewise.
1141         * reload1.c (emit_input_reload_insns): Likewise.
1142         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1143         * config/frv/frv.c (frv_secondary_reload): Likewise.
1144         * config/s390/s390.c (s390_secondary_reload): Likewise.
1145         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1146         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1147         (ix86_register_move_cost): Likewise.
1148         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1149         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1150         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1151         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1152         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1153         (rs6000_ira_cover_classes): Likewise.
1154         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1155         * config/picochip/picochip-protos.h (picochip_secondary_reload):
1156         Likewise.
1157         * config/pa/pa.c (pa_secondary_reload): Likewise.
1158         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1159         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1160         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1161         * doc/tm.texi: Regenerate.
1162
1163 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1164
1165         PR bootstrrap/44726
1166         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1167         use.
1168         (build_alias_set_optimal_p): Likewise.
1169         (build_base_obj_set_for_drs): Likewise.
1170
1171 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1172
1173         * target.def: Remove comment about licensing problems of function
1174         declarations.
1175
1176         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
1177         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1178         * doc/tm.texi: Regenerate.
1179
1180         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
1181         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1182
1183         * target.def (enum_va_list_p): Use DEFHOOK.
1184         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1185         Rename ptype to ptree.
1186         * doc/tm.texi: Regenerate.
1187
1188         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
1189         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1190         * doc/tm.texi: Regenerate.
1191
1192         * target.def (memory_move_cost): Use DEFHOOK.
1193         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1194         Rename regclass AKA class to rclass.
1195         * doc/tm.texi: Regenerate.
1196
1197         * target.def (pragma_parse): Use DEFHOOK.
1198         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1199         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1200         * doc/tm.texi: Regenerate.
1201
1202         * target.def (pass_by_reference): Use DEFHOOK.
1203         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1204         * doc/tm.texi: Regenerate.
1205
1206         * target.def (resolve_overloaded_builtin): Rename params to arglist.
1207         Use DEFHOOK.
1208         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1209         * doc/tm.texi: Regenerate.
1210
1211         * target.def (return_pops_args): Use DEFHOOK.
1212         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1213         Rename stack-size to size.
1214         * doc/tm.texi: Regenerate.
1215
1216         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
1217         last-sched_cycle to last_clock, cur_cycle to clock.
1218         * doc/tm.texi.in: Use @hook.
1219         * doc/tm.texi: Regenerate.
1220
1221         * target.def (print_operand, print_operand_address): Update comment.
1222         (print_operand_punct_valid_p): Likewise.
1223
1224 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1225
1226         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1227         to rtl.h.
1228         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1229         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1230         * rtl-error.h: New.
1231         * regrename.c: Do not include toplev.h. Include rtl-error.h.
1232         * rtl-error.c: Likewise.
1233         * reload.c: Likewise.
1234         * recog.c:  Likewise.
1235         * sel-sched.c: Likewise.
1236         * function.c: Likewise.
1237         * reg-stack.c: Likewise.
1238         * cfgrtl.c: Likewise.
1239         * reload1.c: Likewise.
1240         * final.c: Include rtl-error.
1241         * Makefile.in: Adjust dependencies.
1242
1243 2010-06-30  Jan Hubicka  <jh@suse.cz>
1244
1245         PR middle-end/PR44706
1246         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1247         to return the value.
1248
1249 2010-06-30  Michael Matz  <matz@suse.de>
1250
1251         PR bootstrap/44699
1252         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1253         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1254         a gimple reg, attach the original VDEF to the last store in the
1255         sequence.
1256
1257 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
1258
1259         PR other/44034
1260         * config/darwin.c (darwin_override_options): Use renamed
1261         targetm.asm_out.emit_unwind_label.
1262
1263 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1264
1265         PR tree-optimization/39799
1266         * tree-inline.c (remap_ssa_name): Initialize variable only if
1267         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1268
1269 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
1270
1271         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1272
1273 2010-06-30  Richard Guenther  <rguenther@suse.de>
1274
1275         PR target/44722
1276         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1277         against oscillation with reverse peephole2.
1278
1279 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1280
1281         PR target/44721
1282         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1283         Fix last commit.
1284
1285 2010-06-30  Nick Clifton  <nickc@redhat.com>
1286
1287         * config/rx/rx-modes.def: New file.
1288         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1289         (CC_REGNUM): Define.
1290         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1291         register.
1292         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1293         (SELECT_CC_MODE): Define.
1294         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
1295         (reg:CC CC_REG) instead of (cc0).
1296         (attr "cc"): Delete.
1297         (cbranchsi4): Do not split compare and branch here. Instead move
1298         it to...
1299         (cbranchsi4_<code>): ... here.  New patterns.
1300         (cmpsi): Call rx-compare_redundant to find out if it is necessary
1301         to emit the compare instruction.
1302         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1303         cc_status flags.
1304         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1305         FIRST_PSEUDO_REGNUM.
1306         (rx_expand_prologue, rx_expand_epilogue): Likewise.
1307         (rx_notice_update_cc): Delete.
1308         (rx_cc_modes_compatible): New function.
1309         (flags_needed_for_conditional): New function.
1310         (flags_from_mode): New function.
1311         (rx_compare_redundant): New function - scans backwards through
1312         insn list to find out if condition flags are already set correctly.
1313         (TARGET_CC_MODES_COMPATIBLE): Define.
1314         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1315
1316         * config/rx/rx.h (BRANCH_COST): Define.
1317         (REGISTER_MOVE_COST): Define.
1318         * config/rx/predicates (rx_source_operand): Allow all constant types.
1319         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1320         (tstsi4): New pattern.
1321         * config/rx/rx.c (rx_memory_move_cost): Define.
1322         (TARGET_MEMORY_MOVE_COST): Define.
1323
1324 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1325
1326         * tree.h (block_may_fallthru): Declare here.
1327         * tree-flow.h (block_may_fallthru): Do not declare here.
1328         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1329         bitmap.h
1330         * Makefile.in (c-typeck.o): Update dependencies.
1331
1332 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
1333
1334         PR debug/44694
1335         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
1336         * cselib.c (cfa_base_preserved_regno): New static variable.
1337         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
1338         of REGNO (cfa_base_preserved_val->locs->loc).
1339         (cselib_preserve_cfa_base_value): Add regno argument, set
1340         cfa_base_preserved_regno to it.
1341         (cselib_invalidate_regno): Allow removal of registers other than
1342         cfa_base_preserved_regno from cfa_base_preserved_val.
1343         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
1344         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
1345         of MEM addresses, if not on LHS.
1346         (reverse_op): Don't add reverse ops for cfa_base_rtx.
1347         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
1348
1349 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1350
1351         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
1352         static variables.
1353         (peep2_buf_position): New static function.
1354         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
1355         peephole2_optimize): Use it.
1356         (peep2_attempt, peep2_update_life): New static functions, broken out
1357         of peephole2_optimize.
1358         (peep2_fill_buffer): New static function.
1359         (peephole2_optimize): Change the main loop to try to fill the buffer
1360         with the maximum number of insns before matching them against
1361         peepholes.  Use a forward scan.  Remove special case for targets with
1362         conditional execution.
1363         * genrecog.c (change_state): Delete dead code.
1364         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1365         Rewrite so as not to expect the second insn to have had a peephole
1366         applied yet.
1367
1368 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1369
1370         * genhooks.c (emit_findices): Cast field precision to int.
1371         (emit_documentation): Likewise.
1372
1373 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
1374
1375         PR tree-optimization/43801
1376         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
1377         if old_decl was DECL_ONE_ONLY.
1378
1379         PR debug/44668
1380         * dwarf2out.c (add_accessibility_attribute): New function.
1381         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
1382         instead of adding DW_AT_accessibility manually.
1383         (gen_enumeration_type_die, gen_struct_or_union_type_die,
1384         gen_typedef_die): Use it.
1385
1386 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1387
1388         * vmsdbgout.c (full_name): Just output the file name if not native.
1389
1390 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1391
1392         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
1393         (funcnam_table): New static table.
1394         (funcnum_table): New static table.
1395         (write_rtnbeg): Write value saved in funcnum_table.
1396         (write_rtnend): Write value saved in funcnum_table.
1397         (vmsdbgout_begin_function): Save current function info in
1398         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
1399         (vmsdbgout_finish): Iterate over funcnum_table.
1400
1401 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1402
1403         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
1404         (vmsdbgout_type_decl): Declare
1405         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
1406         (FUNC_EPILOGUE_LABEL): New macro
1407         (vmsdbgout_begin_epilogue): New function.
1408         (vmsdbgout_type_decl): New function.
1409
1410 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1411
1412         * vmsdbg.h: Update copyright.
1413
1414 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1415
1416         * vmsdbg.h (DST_K_TBG): New DST constant.
1417         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
1418         (write_modbeg): Cast module_language to avoid warning.
1419         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
1420
1421 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1422
1423         PR other/44034
1424         * target.def, doc/tm.texi.in, genhooks.c: New files.
1425         * target.h: Instead of defining individual hook members,
1426         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
1427         include target.def.
1428         * target-def.h: Instead of defining individual hook initializers,
1429         include target-hooks-def.h.
1430         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
1431         targetm.live_on_entry -> targetm.extra_live_on_entry
1432         targetm.sched.md_finish ->targetm.sched.finish
1433         targetm.sched.md_init -> targetm.sched.init
1434         targetm.sched.md_init_global -> targetm.sched.init_global
1435         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
1436         targetm.asm_out.except_table_label ->
1437           targetm.asm_out.emit_except_table_label
1438         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
1439         targetm.target_help -> targetm.help
1440         targetm.vectorize.builtin_support_vector_misalignment ->
1441           targetm.vectorize.support_vector_misalignment
1442         targetm.file_start_app_off -> targetm.asm_file_start_app_off
1443         targetm.file_start_file_directive ->
1444          targetm.asm_file_start_file_directive
1445         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
1446         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
1447         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
1448         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
1449           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
1450         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
1451           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
1452         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
1453         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
1454         * Makefile.in (TARGET_H): Depend on target.def.
1455         (TARGET_DEF_H): Depend on target-hooks-def.h.
1456         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
1457         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
1458         * doc/tm.texi: Regenerate.
1459
1460         * Makefile.in (s-tm-texi): Remove stray tab / rule.
1461
1462         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
1463         (targetm.sched.init): Likewise.
1464
1465 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1466
1467         PR bootstrap/44713
1468         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
1469         (function_arg_advance_32): Const-ify TYPE parameter.
1470         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
1471         (ix86_function_arg_advance): Change type of NAMED to bool.
1472         (function_arg_32): Const-ify CUM and TYPE parameters.
1473         (function_arg_64): Likewise.  Change type of NAMED to bool.
1474         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
1475         to bool.
1476         (ix86_function_arg): Change type of NAMED to bool.
1477         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
1478         last argument as a bool.
1479
1480 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1481
1482         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
1483         (OVERRIDE_OPTIONS): Add note of obsolescence.
1484         Replace references with references to TARGET_OPTION_OVERRIDE.
1485         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
1486          the macro).
1487         * targhooks.c (default_target_option_override): New function.
1488         * targhooks.h (default_target_option_override): Declare.
1489         * target.h (struct gcc_target): Add override member to
1490         target_option member.
1491         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
1492         targetm.target_option.override call.
1493         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
1494         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
1495
1496 2010-06-29  Jan Hubicka  <jh@suse.cz>
1497
1498         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
1499
1500 2010-06-29  Jan Hubicka  <jh@suse.cz>
1501
1502         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
1503         unreachable.
1504         (rebuild_frequencies): New function.
1505         * predict.h (rebuild_frequencies): Declare.
1506         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
1507         entry block and edge reaching new_entry.
1508         (tree_function_versioning): When doing partial cloning, rebuild
1509         frequencies when done.
1510         * passes.c (execute_function_todo): Use rebild_frequencies.
1511
1512 2010-06-29  Richard Guenther  <rguenther@suse.de>
1513
1514         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
1515         * tree-flow.h (enum noalias_state): Remove.
1516         (struct var_ann_d): Remove noalias_state member.
1517
1518 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1519
1520         PR target/43902
1521         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
1522         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
1523         (maddhidi4): Likewise.
1524
1525         Revert parts of the change for PR25130.
1526         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1527         MEM_ALIAS_SET.
1528
1529 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1530
1531         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
1532         targetm.calls.function_incoming_arg, and
1533         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
1534         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
1535         * target.h (struct gcc_target): Add function_arg_advance,
1536         function_arg, and function_incoming_arg fields.
1537         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
1538         (TARGET_FUNCTION_INCOMING_ARG): Define.
1539         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
1540         and TARGET_FUNCTION_INCOMING_ARG.
1541         * targhooks.h (default_function_arg_advance): Declare.
1542         (default_function_arg, default_function_incoming_arg): Declare.
1543         * targhooks.c (default_function_arg_advance): New function.
1544         (default_function_arg, default_function_incoming_arg): New function.
1545         * config/i386/i386.c (function_arg_advance): Rename to...
1546         (ix86_function_arg_advance): ...this.  Make static.
1547         (function_arg): Rename to...
1548         (ix86_function_arg): ...this.  Make static.
1549         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1550         (TARGET_FUNCTION_ARG): Define.
1551         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
1552         (FUNCTION_ARG): Delete.
1553         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
1554         (function_arg): Delete prototype.
1555
1556 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1557
1558         * reginfo.c (init_reg_sets_1): Adjust comments.
1559         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
1560         * calls.c (prepare_call_address): Likewise.
1561         (emit_call_1): Use targetm.calls.return_pops_args.
1562         (expand_call): Likewise.
1563         * function.c (assign_parms): Likewise.
1564         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
1565         * target.h (struct gcc_target) [struct calls]: Add
1566         return_pops_args field.
1567         * targhooks.h (default_return_pops_args): Declare.
1568         * targhooks.c (default_return_pops_args): Define.
1569         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
1570         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
1571         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
1572         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
1573         documentation.
1574         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
1575         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
1576         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
1577         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
1578         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
1579         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
1580         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
1581         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
1582         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
1583         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
1584         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
1585         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
1586         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
1587         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
1588         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
1589         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
1590         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
1591         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
1592         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
1593         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
1594         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
1595         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
1596         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
1597         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
1598         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
1599         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
1600         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
1601         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
1602         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
1603         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
1604         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
1605         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
1606         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
1607         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
1608         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
1609         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
1610         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
1611         * config/i386/i386.c (ix86_return_pops_args): Make static.
1612         Constify arguments.
1613         (TARGET_RETURN_POPS_ARGS): Define.
1614         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
1615         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
1616         (TARGET_RETURN_POPS_ARGS): Define.
1617         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
1618         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
1619         (TARGET_RETURN_POPS_ARGS): Define.
1620
1621 2010-06-29  Richard Guenther  <rguenther@suse.de>
1622
1623         PR middle-end/44667
1624         * tree-inline.c (initialize_inlined_parameters): Make sure
1625         to remap the inlined parameter variable substitutions types.
1626
1627 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1628
1629         PR rtl-optimization/44659
1630         * combine.c (make_compound_operation) <SUBREG>: Do not return the
1631         result of force_to_mode if it partially re-expanded the compound.
1632
1633 2010-06-28  Jan Hubicka  <jh@suse.cz>
1634
1635         PR middle-end/44671
1636         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
1637         RESULT_DECL.
1638
1639 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
1640
1641         * double-int.h (force_fit_type_double): Remove declaration.
1642         * double-int.c (force_fit_type_double): Move to tree.c.
1643         * tree.h (force_fit_type_double): Declare.
1644         * tree.h (force_fit_type_double): Moved from double-int.c. Use
1645         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
1646         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
1647         * convert.c (convert_to_pointer): Adjust call to
1648         force_fit_type_double.
1649         * tree-vrp.c (extract_range_from_assert,
1650         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
1651         * fold-const.c: Update comment.
1652         (int_const_binop, fold_convert_const_int_from_int,
1653         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
1654         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
1655         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
1656         round_up_loc): Adjust call to force_fit_type_double.
1657
1658 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1659
1660         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
1661
1662 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1663
1664         * tree-sra.c (convert_callers): New parameter, change fndecls of
1665         recursive calls.
1666         (modify_function): Pass the old decl to convert_callers.
1667
1668 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1669
1670         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
1671         ipa_check_create_node_params and ipa_initialize_node_params with
1672         checking asserts they are not necessary.
1673
1674 2010-06-28  Jan Hubicka  <jh@suse.cz>
1675
1676         PR tree-optimization/44687
1677         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
1678
1679 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1680
1681         PR c++/44535
1682         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
1683         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
1684         instead of BINFO_BASE_BINFO.
1685
1686 2010-06-28  Michael Matz  <matz@suse.de>
1687
1688         PR middle-end/44592
1689         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
1690         proper VDEF chain for intermediate stores in the sequence.
1691
1692 2010-06-28  Jan Hubicka  <jh@suse.cz>
1693
1694         PR tree-optimization/44357
1695         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
1696         uninlinable functions.
1697
1698 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1699
1700         * config.gcc (powerpc*-*-*): Handle titan.
1701         * config/rs6000/rs6000.c (titan_cost): New costs.
1702         (rs6000_override_options): Add "titan" to processor_target_table.
1703         Add Titan to branch alignment logic.
1704         Correctly set rs6000_cost for titan.
1705         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
1706         * config/rs6000/titan.md: New file.
1707         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
1708
1709 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1710
1711         * tree-browser.c (TB_history_stack): Convert to a VEC.
1712         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
1713         (TB_history_prev): Likewise.
1714
1715 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1716
1717         * vec.h (vec_heap_free): Add parentheses around free.
1718
1719 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
1720
1721         * system.h: Poison GCC_EXCEPT_H for front-end files.
1722
1723         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
1724         langhook.
1725         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
1726         Define to NULL by default.
1727         * except.h: Define GCC_EXCEPT_H.
1728         (doing_eh): Remove prototype.
1729         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
1730         (lang_protect_cleanup_actions): Remove.
1731         * except.c (lang_protect_cleanup_actions): Remove.
1732         (doing_eh): Remove.
1733         (gen_eh_region): Don't check doing_eh here.
1734         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
1735         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
1736         instead of lang_protect_cleanup_actions.
1737         * omp-low.c (maybe_catch_exception): Likewise.
1738         * Makefile.in: Update dependencies.
1739
1740 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
1741
1742         * cgraph.h (struct varpool_node): new used_from_object_file flag.
1743         (struct cgraph_local_info): new used_from_object_file flag.
1744         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
1745         (cgraph_clone_node): initialize used_from_object_file.
1746         (cgraph_create_virtual_clone): initialize used_from_object_file.
1747         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
1748         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
1749         when compiling with -fwhole-program.
1750         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
1751         internal resolver.
1752         * ipa.c (function_and_variable_visibility): Set externally_visible
1753         flag of varpool_node if used_from_object_file flag is set.
1754         (cgraph_externally_visible_p): check used_from_object_file flag.
1755         * doc/invoke.texi (-fwhole-program option): Change description of
1756         externally_visible attribute accordingly.
1757         * doc/extend.texi (externally_visible): Ditto.
1758
1759 2010-06-27  Jan Hubicka  <jh@suse.cz>
1760
1761         * params.def (max-inline-insns-auto): Default to 40.
1762         * doc/invoke.texi (max-inline-insns-auto): Document the change.
1763
1764 2010-06-27  Jan Hubicka  <jh@suse.cz>
1765
1766         PR middle-end/44671
1767         PR middle-end/44686
1768         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
1769         signature change.
1770         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
1771         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1772
1773 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
1774
1775         * target.h (struct gcc_target): Add register_move_cost field.
1776         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
1777         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
1778         * targhooks.c (default_register_move_cost): New function.
1779         * targhooks.h (default_register_move_cost): Declare function.
1780         * defaults.h (REGISTER_MOVE_COST): Delete.
1781         * ira-int.h (ira_register_move_cost): Update comment.
1782         * ira.c: (ira_register_move_cost): Update comment.
1783         * reload.h (register_move_cost): Declare.
1784         * reginfo.c (register_move_cost): New function.
1785         (move_cost): Update comment.
1786         (init_move_cost, memory_move_secondary_cost): Replace
1787         REGISTER_MOVE_COST with register_move_cost.
1788         * postreload.c (reload_cse_simplify_set): (Ditto.).
1789         * reload.c (find_valid_class, find_reloads): (Ditto.).
1790         * reload1.c (choose_reload_regs): (Ditto.).
1791         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
1792         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
1793         * doc/md.texi (can_create_pseudo_p): Update documentation.
1794
1795         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
1796         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
1797         * config/i386/i386.h (ix86_memory_move_cost): Make static.
1798         (TARGET_MEMORY_MOVE_COST): Define.
1799
1800         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1801         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
1802         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
1803         (TARGET_MEMORY_MOVE_COST): Define.
1804
1805 2010-06-27  Richard Guenther  <rguenther@suse.de>
1806
1807         PR tree-optimization/44683
1808         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
1809         false edge from the inverted condition.
1810
1811 2010-06-27  Richard Guenther  <rguenther@suse.de>
1812
1813         PR middle-end/44684
1814         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
1815         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
1816         for register LHS.  Or non-store assignments.
1817
1818 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
1819
1820         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
1821         (sparc_emit_set_const64): Likewise.  Remove disabled code.
1822         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
1823         (sparc_emit_set_const64): Likewise.
1824
1825 2010-06-26  Catherine Moore  <clm@codesourcery.com>
1826
1827         * config/mips/mips.md (alu_type): New attribute.
1828         (type): Infer type from alu_type.
1829         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
1830         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
1831         *subsi3_extended, negsi2, negdi2, *low<mode>,
1832         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
1833         xor<mode>3, *nor<mode>3,
1834         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
1835         *zero_extendhi_truncqi):  Set alu_type instead of type.
1836
1837 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
1838
1839         * config/alpha/alpha.c (alpha_need_linkage): Adjust
1840         splay_tree_new_ggc call.
1841         (alpha_use_linkage): Likewise.
1842
1843 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
1844
1845         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
1846         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
1847         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
1848         (static_specs): Remove switches_need_spaces.
1849         (process_command, do_self_spec): Hardcode handling "-o" instead of
1850         checking switches_need_spaces.
1851         * system.h (SWITCHES_NEED_SPACES): Poison.
1852
1853 2010-06-26  Richard Guenther  <rguenther@suse.de>
1854
1855         PR tree-optimization/44393
1856         * tree-loop-distribution.c (generate_loops_for_partition): Fix
1857         stmt removal and VOP renaming.
1858         (generate_memset_zero): Remove redundant stmt updating.
1859         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
1860         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
1861
1862 2010-06-26  Jan Hubicka  <jh@suse.cz>
1863
1864         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
1865         edges comming from header are equivalent.
1866         (visit_bb): Handle PHIs correctly.
1867         * tree-inline.c (copy_phis_for_bb): Be able to copy
1868         PHI from entry edge.
1869         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
1870
1871 2010-06-26  Richard Guenther  <rguenther@suse.de>
1872
1873         PR middle-end/44674
1874         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
1875         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
1876
1877 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
1878
1879         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
1880         add_infile, alloc_switch): New.
1881         (process_command): Remove variable lang_n_infiles.  Process
1882         options in a single pass.  Use new functions for allocating
1883         infiles and switches arrays.  Properly skip operands of
1884         -Xpreprocessor and -Xassembler.
1885
1886 2010-06-26  Jan Hubicka  <jh@suse.cz>
1887
1888         PR middle-end/44671
1889         * cgraphunit.c (cgraph_function_versioning): Remove wrong
1890         cgraph_make_decl_local call; fix typo copying RTL data.
1891
1892 2010-06-25  DJ Delorie  <dj@redhat.com>
1893
1894         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
1895         (m32c_output_aligned_common): Likewise.
1896         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1897         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1898         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
1899         (m32c_register_pragmas): Register it.
1900         * config/m32c/m32c.c (m32c_get_pragma_address): New.
1901         (m32c_insert_attributes): Set #pragma address decls volatile.
1902         (pragma_entry_eq): New.
1903         (pragma_entry_hash): New.
1904         (m32c_note_pragma_address): New.
1905         (m32c_get_pragma_address): New.
1906         (m32c_output_aligned_common): New.
1907         * doc/extend.texi: Document the new pragma.
1908
1909         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
1910         also.
1911         * config/m32c/predicates.md (m32c_any_operand): Check the code
1912         instead of memory_operand so as to allow matching volatile MEMs.
1913         (m32c_nonimmediate_operand): Likewise.
1914         (mra_operand): Allow volatiles.
1915
1916 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
1917
1918         PR debug/44610
1919         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
1920         address if the offset is unknown.
1921
1922 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
1923
1924         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
1925         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
1926         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
1927         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
1928         to ia64_start_function. Invoke it.
1929         * config/ia64/ia64.c (ia64_start_function): Call new function
1930         dwarf2out_vms_debug_main_pointer.
1931
1932 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1933
1934         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
1935         statements computing the true predicate.
1936
1937 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1938
1939         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
1940         to boolean_true_node.
1941         (reset_bb_predicate): New.
1942         (predicate_bbs): Call reset_bb_predicate.
1943
1944 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1945
1946         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
1947         (tree_if_conversion): Returns true when something has been changed.
1948         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
1949         changed something.
1950
1951 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1952
1953         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
1954         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
1955         * tree-if-conv.c: Include dbgcnt.h.
1956         (tree_if_conversion): Use if_conversion_tree to count the number of
1957         if-convertible loops.
1958
1959 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
1960
1961         * common.opt (fprefetch-loop-arrays): Re-define
1962         -fprefetch-loop-arrays as a tri-state option with the initial
1963         value of -1.
1964         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
1965         pass only when flag_prefetch_loop_arrays > 0.
1966         * toplev.c (process_options): Note that, with tri-states,
1967         flag_prefetch_loop_arrays>0 means prefetching is enabled.
1968         * config/i386/i386.c (override_options): Enable prefetching at -O3
1969         for a set of CPUs that sw prefetching is helpful.
1970         (software_prefetching_beneficial_p): New.  Return TRUE if software
1971         prefetching is beneficial for the given CPU.
1972
1973 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
1974
1975         PR rtl-optimization/44326
1976         * implicit-zee.c (find_removable_zero_extends): Replace
1977         INSN_P with NONDEBUG_INSN_P.
1978
1979 2010-06-25  Martin Jambor  <mjambor@suse.cz>
1980
1981         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
1982         (struct ipa_node_params): Removed the modification_analysis_done flag.
1983         (ipa_is_param_modified): Removed.
1984         (ipa_analyze_node): Declare.
1985         (ipa_compute_jump_functions): Remove declaration.
1986         (ipa_count_arguments): Likewise.
1987         (ipa_detect_param_modifications): Likewise.
1988         (ipa_analyze_params_uses): Likewise.
1989         * ipa-prop.c (struct param_analysis_info): New type.
1990         (visit_store_addr_for_mod_analysis): Removed.
1991         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
1992         moved down in the file.
1993         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
1994         (ipa_count_arguments): Made static.
1995         (mark_modified): New function.
1996         (is_parm_modified_before_call): New function.
1997         (compute_pass_through_member_ptrs): New parameter parms_info, call
1998         is_parm_modified_before_call instead of ipa_is_param_modified.
1999         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2000         it to compute_pass_through_member_ptrs.
2001         (ipa_compute_jump_functions): New parameter parms_info, pass it to
2002         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
2003         on the callee if it is analyzed.  Made static.
2004         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2005         is_parm_modified_before_call instead of ipa_is_param_modified.
2006         (ipa_analyze_call_uses): New parameter parms_info, pass it to
2007         ipa_analyze_indirect_call_uses.
2008         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2009         ipa_analyze_call_uses.
2010         (ipa_analyze_params_uses): New parameter parms_info, pass it to
2011         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
2012         (ipa_analyze_node): New function.
2013         (ipa_print_node_params): Do not dump the modified flag.
2014         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2015         it.  Do not stream the modified parameter flag.
2016         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2017         it.  Do not stream the modified parameter flag.
2018         * ipa-cp.c (ipcp_analyze_node): Removed.
2019         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2020         with only a call to ipa_analyze_node.
2021         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2022         node with only a call to ipa_analyze_node.
2023
2024 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2025
2026         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2027
2028 2010-06-25  Jan Hubicka  <jh@suse.cz>
2029
2030         * tree-pass.h (pass_split_functions): Declare.
2031         * opts.c (decode_options): Enable function splitting at -O2
2032         * timevar.def (TV_IPA_FNSPLIT): New macro.
2033         * ipa-split.c: New file.
2034         * common.opt (-fpartial-inlining): New flag.
2035         * Makefile.in (ipa-split.o): New object file.
2036         * passes.c (init_optimization_passes): Add ipa-split.
2037         * params.def (partial-inlining-entry-probability): New parameters.
2038         * doc/invoke.texi (-fpartial-inlining): New.
2039
2040 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2041
2042         PR 44665
2043         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2044         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2045         (gimplify_expr): Likewise.
2046
2047 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2048
2049         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2050         statements instead of bailing out on them.
2051         (ipa_analyze_indirect_call_uses): Do not require that loads from the
2052         parameter are in the same BB as the condition.  Update comments.
2053
2054 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
2055
2056         PR middle-end/43866
2057         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2058         true or always false, return NULL_TREE.
2059         (tree_unswitch_single_loop): Optimize conditions even when reaching
2060         max-unswitch-level parameter.  If num > 0, optimize first all conditions
2061         using entry checks, then do still reachable block discovery and consider
2062         only conditions in still reachable basic blocks in the loop.
2063
2064         PR tree-optimization/44539
2065         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2066         the call doesn't have LHS, but has VDEF.
2067
2068 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2069
2070         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2071         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2072         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2073         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2074         * system.h (MODIFY_TARGET_NAME): Poison.
2075
2076 2010-06-25  Alan Modra  <amodra@gmail.com>
2077
2078         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2079         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2080         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2081         CMODEL_LARGE as default.
2082         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2083         (offsettable_ok_by_alignment): Delete.
2084         (rs6000_emit_move): Remove mcmodel=medium optimization.
2085
2086 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2087
2088         With large parts from Jim Wilson:
2089         PR target/43902
2090         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2091         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2092         * optabs.c (optab_for_tree_code): Likewise.
2093         (expand_widen_pattern_expr): Likewise.
2094         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2095         out of execute_optimize_widening_mul.
2096         (convert_plusminus_to_widen): New function.
2097         (execute_optimize_widening_mul): Use the two new functions.
2098         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2099         Remove code to generate widening multiply-accumulate.  Add support
2100         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2101         * gimple-pretty-print.c (dump_ternary_rhs): New function.
2102         (dump_gimple_assign): Call it when appropriate.
2103         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2104         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2105         (expand_gimple_stmt_1): Likewise.
2106         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2107         WIDEN_MULT_MINUS_EXPR.
2108         * tree-ssa-operands.c (get_expr_operands): Likewise.
2109         * tree-inline.c (estimate_operator_cost): Likewise.
2110         * gimple.c (extract_ops_from_tree_1): Renamed from
2111         extract_ops_from_tree.  Add new arg for a third operand; fill it.
2112         (gimple_build_assign_stat): Support operations with three operands.
2113         (gimple_build_assign_with_ops_stat): Likewise.
2114         (gimple_assign_set_rhs_from_tree): Likewise.
2115         (gimple_assign_set_rhs_with_ops_1): Renamed from
2116         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
2117         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2118         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2119         WIDEN_MULT_MINUS_EXPR.
2120         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2121         (extract_ops_from_tree_1): Adjust declaration.
2122         (gimple_assign_set_rhs_with_ops_1): Likewise.
2123         (gimple_build_assign_with_ops): Pass NULL for last operand.
2124         (gimple_build_assign_with_ops3): New macro.
2125         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2126         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2127         functions.
2128         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2129         (verify_gimple_assign): Call it.
2130         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2131         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2132         functions for dealing with three-operand statements.
2133         * tree.c (commutative_ternary_tree_code): New function.
2134         * tree.h (commutative_ternary_tree_code): Declare it.
2135         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2136         ternary statements.
2137         (gimple_assign_nonzero_warnv_p): Likewise.
2138         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2139         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2140         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
2141         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2142         (struct hashtable_expr): New member ternary in the union.
2143         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2144         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
2145         (iterative_hash_hashable_expr): Likewise.
2146         (print_expr_hash_elt): Handle EXPR_TERNARY.
2147         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2148         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2149         statements.  Handle GIMPLE_TERNARY_RHS.
2150
2151 2010-06-25  Jan Hubicka  <jh@suse.cz>
2152
2153         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2154
2155 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
2156
2157         PR c/44517
2158         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2159         parameters are not good.
2160         (c_parser_parameter_declaration): Error unknown type name if the type
2161         name can't start declaration specifiers.
2162
2163 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2164
2165         * gcc.c (translate_options): Don't mention +e in comment.
2166         (process_command): Don't handle +e specially.
2167
2168 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2169
2170         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2171
2172         * ira-build.c (merge_hard_reg_conflicts): New function.
2173         (create_cap_allocno, copy_info_to_removed_store_destinations,
2174         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2175         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2176         (remove_unnecessary_allocnos, remove_low_level_allocnos)
2177         copy_nifo_to_removed_store_destination): Use them.
2178         * ira-lives.c (make_hard_regno_born): New function, split out of
2179         make_regno_born.
2180         (make_allocno_born): Likewise.
2181         (make_hard_regno_dead): New function, split out of make_regno_dead.
2182         (make_allocno_dead): Likewise.
2183         (inc_register_pressure): New function, split out of set_allocno_live.
2184         (dec_register_pressure): New function, split out of clear_allocno_live.
2185         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2186         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
2187         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2188         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
2189         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2190         mark_pseudo_regno_live.
2191         (process_bb_node_lives): Use mark_pseudo_regno_live,
2192         make_hard_regno_born and make_allocno_dead.
2193         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2194         set_allocno_live, clear_allocno_live): Delete functions.
2195
2196         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2197         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2198         functions.
2199         (ira_flattening): Use ira_parent_allocno.
2200         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2201         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2202
2203         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2204         statement.
2205
2206         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2207         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2208         minmax_set_iter_cond, minmax_set_iter_next,
2209         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2210         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2211         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2212         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
2213         uses changed.
2214
2215         * ira-int.h (struct live_range, live_range_t): Renamed from struct
2216         ira_allocno_live_range and allocno_live_range_t; all uses changed.
2217         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2218         All uses changed.
2219
2220 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
2221
2222         * thumb2.md (thumb2_tlobits_cbranch): Delete.
2223         (peephole2 to convert zero_extract/compare of single bit to
2224          lshift/compare): New.
2225
2226 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
2227
2228         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2229         recursive call and call to 'int_const_binop'.
2230         (build_range_check, fold_cond_expr_with_comparison, unextend,
2231         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2232         multiple_of_p): Adjust call to const_binop.
2233
2234 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
2235
2236         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2237         determine size of XFmode operand.
2238         (XFmode extended DFmode push splitter): Ditto.
2239         (XFmode extended SFmode push splitter): Ditto.
2240
2241 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2242
2243         PR target/44588
2244         * config/i386/i386.md (extract_code): New.
2245         (<u>divmodqi4): Likewise.
2246         (divmodhiqi3): Likewise.
2247         (udivmodhiqi3): Likewise.
2248         (<u>divqi3): Remvoved.
2249
2250 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
2251
2252         PR middle-end/44492
2253         * recog.h (struct recog_data): Add is_asm field.
2254         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2255         present in constraints of inline-asm operand and memory operand
2256         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2257         (extract_insn): Initialize recog_data.is_asm.
2258         * doc/md.texi (Constraints): Document operand side-effect rules.
2259
2260 2010-06-24  Andi Kleen  <ak@linux.intel.com>
2261
2262         * c-parser.c (c_parser_conditional_expression): Call
2263         warn_for_omitted_condop.
2264         * doc/invoke.texi: Document omitted condop warning.
2265
2266 2010-06-24  Nick Clifton<nickc@redhat.com>
2267
2268         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2269         insn in the sequence is a jump insn before setting its label.
2270
2271 2010-06-24  Alan Modra  <amodra@gmail.com>
2272
2273         * collect2.c (main): Match exactly --version and --help.
2274
2275 2010-06-24  DJ Delorie  <dj@redhat.com>
2276
2277         * config/m32c/m32c-pragma.c: Don't include rtl.h.
2278
2279 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
2280
2281         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2282         using X87MODEF mode iterator.
2283         (pushsf splitter): Macroize splitter using P mode iterator.
2284         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2285         mode iterator.
2286
2287         (*movxf_internal): Rename from *movxf_integer.
2288         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2289         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2290         (*movdf_internal): Rename from *movdf_integer.
2291         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2292         (*movsf_internal): Rename from *movdf_1.
2293
2294 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
2295
2296         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2297         (const_gimple_seq_node): Removed typedefs.
2298
2299         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2300         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2301
2302 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2303
2304         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2305         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2306         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2307         and CODE_FOR_vec_extract_lo_v4df.
2308
2309         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2310         Changed to define_insn_and_split.
2311         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2312         (vec_extract_lo_v16hi): Likewise.
2313         (vec_extract_lo_v32qi): Likewise.
2314         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2315         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2316
2317 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
2318
2319         PR target/44640
2320         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2321         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2322         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2323         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2324         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2325
2326         PR target/44640
2327         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2328
2329         PR other/44644
2330         * df-core.c (struct df): Rename to df_d.
2331         * df.h (struct df): Likewise.
2332         * dse.h (struct df): Remove forward declaration.
2333         * recog.h (struct insn_data): Rename to:
2334         (struct_insn_data_d).  Adjusted all users.
2335
2336 2010-06-23  Arnaud Charlet  <charlet@adacore.com
2337
2338         PR ada/22220
2339         * doc/install.texi: Update requirements to build GNAT.
2340
2341 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
2342
2343         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
2344         enum type.
2345         (m68k_sched_attr_opx_type): Remove unreachable return.
2346         (m68k_sched_attr_opy_type): Likewise.
2347         (m68k_sched_attr_size): Likewise.
2348         (sched_get_opxy_mem_type): Likewise.
2349         (m68k_sched_attr_op_mem): Likewise.
2350
2351 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2352
2353         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
2354         new statement and adjust VDEF only if necessary.  Remove superfluous
2355         call to maybe_clean_or_replace_eh_stmt.
2356         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
2357         copy the flags.
2358         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
2359         * tree-inline.c (copy_bb): ...and not there.
2360
2361 2010-06-22  Cary Coutant  <ccoutant@google.com>
2362
2363         * dwarf2out.c (is_nested_in_subprogram): New function.
2364         (should_move_die_to_comdat): Use it.
2365         (copy_ancestor_tree): Don't mark DIEs here.
2366         (copy_decls_walk): Start walk from root of newly-added tree;
2367         mark DIEs here instead.
2368
2369 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2370
2371         * config/i386/i386.md (unit): Also check sseishft1.
2372
2373 2010-06-22  Jan Hubicka  <jh@suse.cz>
2374
2375         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
2376         enabled.
2377
2378 2010-06-22  Jan Hubicka  <jh@suse.cz>
2379
2380         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
2381         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
2382         Return true if something changed.
2383         * df.h (df_confluence_function_n): Return bool.
2384         * df-core.c (df_worklist_propagate_forward,
2385         df_worklist_propagate_backward): Track changes and ages.
2386         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
2387         track ages.
2388         * dse.c (dse_confluence_n): Return always true.
2389
2390 2010-06-22  Jan Hubicka  <jh@suse.cz>
2391
2392         * bitmap.c (bitmap_clear_bit): Micro optimize.
2393
2394 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
2395
2396         * config/i386/i386.md (SWI1248x): New mode iterator.
2397         (SWI48x): Ditto.
2398         (SWI12): Ditto.
2399         (SWI24): Ditto.
2400
2401         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
2402         SWI1248x mode iterator.
2403         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
2404         using SWI124 mode iterator.
2405         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
2406         mode iterator.
2407         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
2408         *pushdi2_prologue_rex64 using P mode iterator.
2409         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
2410         using SWI48 mode iterator.
2411         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
2412         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
2413         using SWI1248x mode iterator.
2414         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
2415         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
2416         SWI48 mode iterator.
2417         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
2418         iterator.
2419         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
2420         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
2421         SWI12 mode iterator.
2422         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
2423         SWI12 mode iterator.
2424         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
2425         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
2426         SWI24 mode iterator.
2427         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
2428         SWI48 mode iterator.
2429         (mov<mode>_insn_1): New expander.
2430         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
2431         using SWI48x mode iterator.
2432
2433         (*movoi_internal_avx): Rename from *movoi_internal.
2434         (*movti_internal_rex64): Rename from *movti_rex64.
2435         (*movti_internal_sse): Rename from *movti_sse.
2436         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
2437         (*movdi_internal): Rename from *movdi_2.
2438         (*movsi_internal): Rename from *movsi_1.
2439         (*movhi_internal): Rename from *movhi_1.
2440         (*movqi_internal): Rename from *movqi_1.
2441
2442         (insv): Update the call to gen_movsi_insv_1 for rename.
2443         * config/i386/i386.c (promote_duplicated_reg): Ditto.
2444
2445 2010-06-22  Jan Hubicka  <jh@suse.cz>
2446
2447         * passes.c (execute_function_todo): Move call of statistics_fini_pass
2448         to ...
2449         (execute_todo) ... this one.
2450
2451 2010-06-22  Alan Modra  <amodra@gmail.com>
2452
2453         PR target/44364
2454         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2455         * caller-save.c (insert_restore, insert_save): Use non-validate
2456         form of adjust_address.
2457
2458 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2459
2460         PR target/39690
2461         * config/pa/pa.c (override_options): Disable
2462         -freorder-blocks-and-partition.
2463
2464 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2465
2466         PR target/44615
2467         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
2468
2469         * config/i386/i386.md (type): Add sseishft1
2470
2471         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
2472         (ppro_insn_load): Likewise.
2473         (ppro_insn_store): Likewise.
2474         (ppro_insn_both): Likewise.
2475
2476         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
2477         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
2478         for type.
2479         (*vec_extractv2di_1_avx): Likewise.
2480         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
2481         type.  Remove atom_unit.
2482         (*vec_extractv2di_1_sse2): Likewise.
2483
2484 2010-06-21  DJ Delorie  <dj@redhat.com>
2485
2486         * diagnostic.h (diagnostic_classification_change_t): New.
2487         (diagnostic_context): Add history and push/pop list.
2488         (diagnostic_push_diagnostics): Declare.
2489         (diagnostic_pop_diagnostics): Declare.
2490         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
2491         from pragmas in a history chain instead of the global table.
2492         (diagnostic_push_diagnostics): New.
2493         (diagnostic_pop_diagnostics): New.
2494         (diagnostic_report_diagnostic): Scan history chain to find state
2495         of diagnostics as of the diagnostic location.
2496         * opts.c (set_option): Pass UNKNOWN_LOCATION to
2497         diagnostic_classify_diagnostic.
2498         (enable_warning_as_error): Likewise.
2499         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
2500         use in the history chain.
2501         * doc/extend.texi: Document pragma GCC diagnostic changes.
2502
2503 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
2504
2505         * dwarf2out.c (add_linkage_name): New function.  Don't add
2506         anything to DW_TAG_member DIEs.
2507         (add_name_and_src_coords_attributes): Use it.
2508         (gen_variable_die): Call it for C++ static data members if
2509         specification is DW_TAG_member.
2510
2511         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
2512         C++ char16_t and char32_t.
2513
2514         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
2515         * genattrtab.c: Include vecprim.h.
2516         (cached_attrs, cached_attr_count, attrs_seen_once,
2517         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
2518         attrs_cached_after): New variables.
2519         (find_attrs_to_cache): New function.
2520         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
2521         (write_test_expr): Add attrs_cached argument, return it too,
2522         attempt to cache non-const attributes used more than once in
2523         a single case handling.
2524         (write_attr_get): Use find_attrs_to_cache, for caching candidates
2525         emit cached_* variables.  Adjust write_attr_set callers.
2526         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
2527         to find attributes that should be cached in this block.  Adjust
2528         write_test_expr callers.
2529         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
2530         callers.
2531         (make_automaton_attrs): Adjust write_test_expr caller.
2532
2533         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
2534         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
2535         (make_automaton_attrs): If find_tune_attr returns non-NULL,
2536         write separate internal_dfa_insn_code_* and insn_default_latency_*
2537         functions for each attribute's value and emit init_sched_attrs
2538         function and function pointers.
2539         * genattr.c (const_attrs, reservations): New variables.
2540         (gen_attr): Add const attributes to const_attrs vector.
2541         (check_tune_attr, find_tune_attr): New functions.
2542         (main): Add reservations to reservations vector.  If find_tune_attr
2543         returns true, add prototype for init_sched_attrs and make
2544         internal_dfa_insn_code and insn_default_latency function pointers,
2545         otherwise define init_sched_attrs as dummy macro.
2546         * cfgexpand.c: Include insn-attr.h.
2547         (gimple_expand_cfg): Call init_sched_attrs.
2548
2549         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
2550
2551         PR target/44575
2552         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
2553         va_arg from a set of register save slots into a temporary,
2554         if the container is bigger than type size, do the copying
2555         using smaller mode or using memcpy.
2556
2557         PR bootstrap/44426
2558         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
2559         prototype.
2560         (sel_print_to_dot): Remove macro.
2561         (sel_print): Likewise.  New prototype.
2562         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
2563         (sel_print): New function.
2564
2565 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2566
2567         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
2568         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
2569
2570 2010-06-21  Nick Clifton  <nickc@redhat.com>
2571
2572         * config/rx/rx.h (PTRDIFF_TYPE): Define.
2573         (SMALL_REGISTER_CLASS): Define (to zero).
2574         (PRINT_OPERAND): Delete.
2575         (PRINT_OPERAND_ADDRESS): Delete.
2576         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
2577         (rx_print_operand_address): Delete prototype.
2578         * config/rx/rx.c (rx_print_operand): Make static.
2579         Allow %H and %L to handle CONST_DOUBLEs.
2580         (rx_print_operand_address): Make static.
2581         (rx_gen_move_template): Rename local variable 'template' to
2582         out_template.
2583         (rx_function_arg): Do not pass unknown sized objects in registers.
2584         (TARGET_PRINT_OPERAND): Define.
2585         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2586
2587 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2588
2589         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
2590
2591 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
2592
2593         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
2594         stack-alignment for simple leaf-functions.
2595
2596 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
2597
2598         * doc/install.texi: Document bootstrap-lto.
2599
2600 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
2601
2602         PR debug/44248
2603         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
2604         (input_function): Drop them here, if VTA is disabled.
2605
2606 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
2607
2608         PR target/44546
2609         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
2610         New predicate.
2611         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
2612         ix86_swapped_fp_comparsion_operator instead of
2613         ix86_fp_comparison_operator.
2614
2615         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
2616         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
2617         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
2618         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
2619         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
2620         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
2621
2622 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
2623
2624         PR other/32998
2625         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
2626         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
2627         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
2628         (decode_cmdline_option): Update for this return value.  Set
2629         orig_option_with_args_text field.  Set arg field for unknown
2630         options.  Make static.
2631         (decode_cmdline_options_to_array): New.
2632         (prune_options): Update handling of find_opt return value.
2633         * opts.c (read_cmdline_option): Take decoded option.  Return void.
2634         (read_cmdline_options): Take decoded options.
2635         (decode_options): Add parameters for decoded options.  Use
2636         decode_cmdline_options_to_array.  Use decoded options for -O
2637         scan.  Use integral_argument for -O parameters.  Update call to
2638         read_cmdline_options.
2639         (enable_warning_as_error): Update handling of find_opt return value.
2640         * opts.h: Update comment on unknown options.
2641         (struct cl_decoded_option): Update comments on opt_index and arg.
2642         Add orig_option_with_args_text.
2643         (decode_cmdline_option): Remove.
2644         (decode_cmdline_options_to_array): Declare.
2645         (decode_options): Update prototype.
2646         * toplev.c (save_argv): Remove.
2647         (save_decoded_options, save_decoded_options_count): New.
2648         (read_integral_parameter): Remove.
2649         (print_switch_values): Use decoded options.
2650         (toplev_main): Don't set save_argv.  Update call to decode_options.
2651         * toplev.h (read_integral_parameter): Remove.
2652         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
2653
2654 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
2655
2656         PR target/44072
2657         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
2658         immediate.
2659         * constraints.md (Pw, Px): New constraints.
2660         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
2661
2662 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2663
2664         * config/i386/sse.md (fma4modesuffixf4): Removed.
2665         (ssemodesuffixf2s): Likewise.
2666         (ssemodesuffixf4): Likewise.
2667         (ssemodesuffixf2c): Likewise.
2668         (ssescalarmodesuffix2s): Likewise.
2669         (avxmodesuffixf2c): Likewise.
2670         (ssemodesuffix): New.
2671         (ssescalarmodesuffix): Likewise.
2672         Update patterns with ssemodesuffix and ssescalarmodesuffix.
2673
2674 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
2675
2676         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
2677
2678 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2679
2680         * stor-layout.c (debug_rli): Remove unused local variables.
2681
2682 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2683
2684         PR rtl-optimization/40900
2685         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
2686         original expression for later reuse.
2687         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
2688         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
2689
2690 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
2691
2692         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
2693         double_int_fits_in_uhwi_p): Implement as static inline.
2694         (double_int_xor): New inline function.
2695         (double_int_lrotate, double_int_rrotate, double_int_max,
2696         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2697         double_int_smin): Declare.
2698         (lrotate_double, rrotate_double): Remove declaration.
2699         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
2700         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
2701         (double_int_lrotate, double_int_rrotate, double_int_max,
2702         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2703         double_int_smin): New function.
2704         * fold-const.c (int_const_binop): Clean up, use double_int_*
2705         functions.
2706         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
2707         double_int_* and immed_double_int_const functions.
2708
2709 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2710
2711         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
2712         * function.c (types_used_by_cur_var_decl): Likewise.
2713         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
2714
2715 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2716
2717         * tree.h (record_layout_info): Change type of pending_statics field
2718         to a VEC.
2719         * stor-layout.c (start_record_layout): Store NULL into
2720         pending_statics.
2721         (debug_rli): Call debug_vec_tree instead of debug_tree.
2722         (place_field): Likewise.
2723         (finish_record_layout): Likewise.
2724
2725 2010-06-18  Alan Modra  <amodra@gmail.com>
2726
2727         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
2728
2729 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2730
2731         PR target/43740
2732         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
2733         for SET source operand from SET destination operand.
2734
2735 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
2736
2737         PR rtl-optimization/39871
2738         * reload1.c (init_eliminable_invariants): For flag_pic, disable
2739         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
2740         (function_invariant_p): Rule out a plus of frame or arg pointer with
2741         a SYMBOL_REF.
2742         * ira.c (find_reg_equiv_invariant_const): Likewise.
2743
2744 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
2745
2746         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
2747         print_operand_address and puts to output the operand for CONST.
2748
2749 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
2750
2751         PR debug/44572
2752         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
2753         hook.
2754
2755 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2756
2757         * v850-protos.h (print_operand): Delete.
2758         (print_operand_address): Delete.
2759         * v850.h (PRINT_OPERAND): Delete.
2760         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2761         (PRINT_OPERAND_ADDRESS): Delete.
2762         * v850.c (print_operand_address): Rename to...
2763         (v850_print_operand_address): ...this.  Make static. Call
2764         v850_print_operand.
2765         (print_operand): Rename to...
2766         (v850_print_operand): ...this.  Make static.  Call
2767         v850_print_operand_address.
2768         (v850_print_operand_punct_valid_p): New function.
2769         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2770         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2771
2772 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2773
2774         * config/sh/sh-protos.h (print_operand): Delete.
2775         (print_operand_address): Delete.
2776         * config/sh/sh.h (PRINT_OPERAND): Delete.
2777         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2778         (PRINT_OPERAND_ADDRESS): Delete.
2779         * config/sh/sh.c (sh_print_operand_address): Make static.
2780         (sh_print_operand): Make static.  Call sh_print_operand_address
2781         and sh_print_operand.
2782         (sh_print_operand_punct_valid_p): New function.
2783         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2784         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2785
2786 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2787
2788         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
2789         (mcore_print_operand_address): Delete.
2790         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
2791         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2792         (PRINT_OPERAND_ADDRESS): Delete.
2793         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
2794         (mcore_print_operand): Make static.
2795         (mcore_print_operand_punct_valid_p): New function.
2796         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
2797         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2798
2799 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2800
2801         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
2802         (print_operand_address): Delete.
2803         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
2804         (PRINT_OPERAND_ADDRESS): Delete.
2805         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
2806         static.
2807         (m68hc11_print_operand): Make static.
2808         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2809
2810 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2811
2812         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
2813         (m32r_print_operand_address): Delete.
2814         * config/m32r/m32r.h (m32r_punct_chars): Delete.
2815         (PRINT_OPERAND): Delete.
2816         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2817         (PRINT_OPERAND_ADDRESS): Delete.
2818         * config/m32r/m32r.c (m32r_punct_chars): Make static.
2819         (m32r_print_operand_address): Make static.
2820         (m32r_print_operand): Make static.
2821         (m32r_print_operand_punct_valid_p): New function.
2822         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2823         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2824
2825 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2826
2827         * config/iq2000/iq2000-protos.h (print_operand): Delete.
2828         (print_operand_address): Delete.
2829         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
2830         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2831         (PRINT_OPERAND_ADDRESS): Delete.
2832         (iq2000_print_operand_punct): Delete.
2833         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
2834         (iq2000_print_operand_address): Make static.
2835         (iq2000_print_operand): Make static.
2836         (iq2000_print_operand_punct_valid_p): New function.
2837         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2838         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2839
2840 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2841
2842         * config/frv/frv-protos.h (frv_print_operand): Delete.
2843         (frv_print_operand_address): Delete.
2844         * config/frv/frv.h (PRINT_OPERAND): Delete.
2845         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2846         (PRINT_OPERAND_ADDRESS): Delete.
2847         * config/frv/frv.c (frv_print_operand_address): Make static.
2848         (frv_print_operand): Make static.
2849         (frv_print_operand_punct_valid_p): New function.
2850         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2851         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2852
2853 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2854
2855         * tree.h (vec_member): Declare.
2856         * tree.c (vec_member): Define.
2857
2858 2010-06-17  Richard Guenther  <rguenther@suse.de>
2859
2860         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
2861         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
2862
2863 2010-06-17  Richard Guenther  <rguenther@suse.de>
2864
2865         * tree-inline.c (declare_return_variable): Remove bogus code.
2866
2867 2010-06-17  Richard Guenther  <rguenther@suse.de>
2868
2869         * gimplify.c (gimplify_bind_expr): Always promote complex
2870         and vector variables to registers if possible.
2871
2872 2010-06-17  Richard Guenther  <rguenther@suse.de>
2873
2874         * expr.c (get_inner_reference): Use double_int for bit_offset
2875         calculation.
2876
2877 2010-06-16  DJ Delorie  <dj@redhat.com>
2878
2879         * common.opt (-fstrict-volatile-bitfields): new.
2880         * doc/invoke.texi: Document it.
2881         * fold-const.c (optimize_bit_field_compare): For volatile
2882         bitfields, use the field's type to determine the mode, not the
2883         field's size.
2884         * expr.c (expand_assignment): Likewise.
2885         (get_inner_reference): Likewise.
2886         (expand_expr_real_1): Likewise.
2887         * expmed.c (store_fixed_bit_field): Likewise.
2888         (extract_bit_field_1): Likewise.
2889         (extract_fixed_bit_field): Likewise.
2890
2891 2010-06-16  Richard Guenther  <rguenther@suse.de>
2892
2893         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
2894
2895 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
2896
2897         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
2898         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
2899         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
2900         * debug.c: Likewise.
2901         * sdbout.c: Likewise.
2902         * vmsdbgout.c: Likewise.
2903         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
2904         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
2905         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
2906         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
2907         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
2908         * dwarf2out.c (dw_fde_struct): New fields
2909         dw_fde_vms_{end,begin}_prologue.
2910         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
2911         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
2912         (dwarf2out_vms_end_prologue): New function.
2913         (dwarf2out_vms_begin_epilogue): New function.
2914         (dw_val_struct): New value dw_val_class_vms_delta.
2915         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
2916         begin_epilogue for VMS.
2917         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
2918         new static functions.
2919         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
2920         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
2921         static functions.
2922         (print_die): New case dw_val_class_vms_delta.
2923         (attr_checksum): Likewise.
2924         (same_dw_val_p: Likewise.
2925         (size_of_die): Likewise.
2926         (value_format): Likewise.
2927         (output_die): Likewise.
2928         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
2929         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
2930         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
2931         dwarf2out_cfi_begin_epilogue
2932         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
2933
2934 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
2935
2936         * config/cris/cris-protos.h (cris_print_operand): Delete.
2937         (cris_print_operand_address): Delete.
2938         * config/cris/cris.h (PRINT_OPERAND): Delete.
2939         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2940         (PRINT_OPERAND_ADDRESS): Delete.
2941         * config/cris/cris.c (cris_print_operand_address): Make static.
2942         (cris_print_operand): Make static.
2943         (cris_print_operand_punct_valid_p): New function.
2944         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2945         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2946
2947 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
2948
2949         * config/arm/arm-protos.h (arm_print_operand): Delete.
2950         (arm_print_operand_address): Delete.
2951         * config/arm/arm.h (PRINT_OPERAND): Delete.
2952         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2953         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
2954         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
2955         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
2956         (arm_print_operand): Make static.
2957         (arm_print_operand_punct_valid_p): New function.
2958         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2959         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2960
2961 2010-06-16  Nick Clifton  <nickc@redhat.com>
2962
2963         * config/rx/constraints.md (NEGint4): New constraint.
2964         * config/rx/rx.md (attr cc): Add set_zsc.
2965         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
2966         initialised.
2967         (cmpsf): Likewise.
2968         (call_internal): Clobber the cc0 register.
2969         (call_value_internal): Likewise.
2970         (cstoresi4): Likewise.
2971         (movsieq): Likewise.
2972         (movsine): Likewise.
2973         (addsi3): Add alternative to handle small negative constants.
2974         (sunsi3): Likewise.
2975         (addsi3): Do not set the O bit in the cc0 register.
2976         (adddi3): Likewise.
2977         (subsi3): Likewise.
2978         (subdi3): Likewise.
2979         (andsi3): Reorder alternatives to prefer shorter forms.
2980         (mulsi3): Likewise.
2981         (iorsi3): Likewise.
2982         (negsi2): Note that the cc0 flags are set.
2983         (rotlsi3): Note that only the Z and S bits are set in cc0.
2984         (lshrsi3): Likewise.
2985         (ashlsi3): Likewise.
2986         (subsf3): Use %Q for the MEM operand.
2987         (fix_truncsfsi2): Likewise.
2988         (floatsisf2): Likewise.
2989         (bitset): Remove early clobber from destination.
2990         (bitset_in_memory): Likewise.
2991         (lrintsf2): Clobber the cc0 register.
2992         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
2993         (rx_print_operand): Handle %N.
2994
2995 2010-06-16  Jan Hubicka  <jh@suse.cz>
2996
2997         * df-core.c (df_compact_blocks): Free problem_temps vector.
2998
2999 2010-06-16  Martin Jambor  <mjambor@suse.cz>
3000
3001         PR tree-optimization/43905
3002         * tree-sra.c: Include tree-inline.h.
3003         (create_abstract_origin): Removed.
3004         (modify_function): Version the call graph node instead of creating
3005         abstract origins and dealing with same_body aliases.
3006         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3007         function is versionable.
3008         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3009
3010 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
3011
3012         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3013         (CHOOSE_DYNAMIC_LINKER): Update.
3014
3015 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
3016
3017         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
3018         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3019         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3020         *prefetch_3dnow_rex.
3021
3022 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
3023
3024         * target.h (struct asm_out):Add declare_constant_name field.
3025         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3026         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3027         * output.h (default_asm_declare_constant_name): Declare.
3028         (assemble_label): Update prototype.
3029         * varasm.c (assemble_constant_contents): Use
3030         targetm.asm_out.declare_constant_name target hook.
3031         (assemble_label): Add 'file' argument.
3032         (default_asm_declare_constant_name): New function.
3033         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3034         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3035         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3036
3037         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3038         * config/darwin.c (darwin_asm_declare_constant_name): New function.
3039         (machopic_output_indirection): Update assemble_label argument list.
3040         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3041         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3042
3043 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
3044
3045         PR middle-end/44391
3046         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3047         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
3048
3049 2010-06-15  Richard Guenther  <rguenther@suse.de>
3050
3051         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3052
3053 2010-06-15  Paul Brook  <paul@codesourcery.com>
3054
3055         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3056         hard-float ABI.
3057
3058 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
3059
3060         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3061         don't get a vector type for output.
3062
3063 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
3064
3065         PR fortran/44536
3066         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3067         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3068         (LANG_HOOKS_DECLS): Add it.
3069         * gimplify.c (omp_notice_variable): Call
3070         lang_hooks.decls.omp_report_decl.
3071
3072 2010-06-15  Martin Jambor  <mjambor@suse.cz>
3073
3074         PR lto/44464
3075         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3076         on the newly dead SSA name.
3077
3078 2010-06-15  Alan Modra  <amodra@gmail.com>
3079
3080         * doc/invoke.texi: Add mcmodel to powerpc options.
3081         * configure.ac: Add HAVE_LD_LARGE_TOC test.
3082         * configure: Regenerate.
3083         * config.in: Regenerate.
3084         * config/rs6000/linux64.opt (mcmodel): New.
3085         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3086         (TARGET_CMODEL, SET_CMODEL): Define.
3087         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3088         select CMODEL_MEDIUM default.
3089         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3090         (TARGET_CMODEL): Define default.
3091         * config/rs6000/rs6000.c (cmodel): New variable.
3092         (rs6000_explicit_options): Add cmodel field.
3093         (rs6000_handle_option): Handle -mcmodel.
3094         (create_TOC_reference): Add largetoc_reg param.  Generate high,
3095         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
3096         (rs6000_delegitimize_address): Recognise new toc reference rtl
3097         and minimal-toc rtl.
3098         (rs6000_legitimize_reload_address): Handle new toc references.
3099         (print_operand_address): Handle legitimate_constant_pool_address_p
3100         match before lo_sum.
3101         (rs6000_eliminate_indexed_memrefs): Tidy.
3102         (rs6000_emit_move): Tweak threshold for inlining constants.
3103         Keep rs6000_emit_allocate_stack large stack frame offsets
3104         loaded into r0 inline.
3105         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3106         (tocrel_base, tocrel_offset): New variables.
3107         (toc_relative_expr_p): Set them here.
3108         (print_operand_address): Skip over any offset on constant pool address.
3109         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3110         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3111         (offsettable_ok_by_alignment): New function.
3112         (rs6000_emit_move): Address suitably aligned local symbol_refs
3113         relative to the toc pointer for -mcmodel=medium.
3114         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
3115         strict param.  Allow lo_sum version of addressing.  Verify reg
3116         used for -mminimal-toc and -mcmodel != small.  Update all callers.
3117         * config/rs6000/constraints.md: Update for above change.
3118         * config/rs6000/predicates.md: Likewise.
3119         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3120         code.
3121         (tls_gd): Split for -mcmodel=medium/large.
3122         (tls_gd_high, tls_gd_low): New.
3123         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3124         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3125         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3126         (largetoc_high, largetoc_low): New.
3127         (cmptf_internal2): Add clobber.
3128         * config/rs6000/rs6000-protos.h: Update.
3129
3130 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
3131
3132         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
3133         true if no prefetch is going to be generated for a given group.
3134         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3135         estimate the prefetch_count.
3136         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3137         prefetch count by considering the unroll_factor and prefetch_mod
3138         for is_loop_prefetching_profitable.
3139
3140 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
3141
3142         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3143         anything if the argument is not a MEM.
3144
3145 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3146
3147         PR debug/43650
3148         PR debug/44181
3149         PR debug/44247
3150         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3151         debug stmts.
3152         (canonicalize_loop_ivs): Likewise.
3153
3154 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3155
3156         PR debug/43656
3157         * haifa-sched.c (setup_insn_reg_pressure_info,
3158         update_register_pressure): Reject debug insns.
3159         (ready_sort): Don't setup reg pressure for debug insns.
3160         (schedule_insn): Don't update reg pressure for debug insns.
3161
3162 2010-06-14  Richard Guenther  <rguenther@suse.de>
3163
3164         * lto-streamer.c (cached_bp): Remove.
3165         (bitpack_delete): Likewise.
3166         (bitpack_create): Likewise.
3167         (bp_get_next_word): Likewise.
3168         (bp_pack_value, bp_unpack_value): Move ...
3169         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3170         Re-implement.
3171         (struct bitpack_d): Likewise.
3172         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3173         New inline functions.
3174         * lto-streamer-out.c (lto_output_bitpack): Remove.
3175         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3176         (pack_value_fields): Adjust.
3177         (lto_write_tree): Likewise.
3178         (output_gimple_stmt): Likewise.
3179         (output_function): Likewise.
3180         * lto-streamer-in.c (input_gimple_stmt): Adjust.
3181         (input_function): Likewise.
3182         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3183         (lto_input_bitpack): Remove.
3184         (lto_materialize_tree): Adjust.
3185         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3186         * lto-cgraph.c (lto_output_edge): Adjust.
3187         (lto_output_node): Likewise.
3188         (lto_output_varpool_node): Likewise.
3189         (lto_output_ref): Likewise.
3190         (input_node): Likewise.
3191         (input_varpool_node): Likewise.
3192         (input_ref): Likewise.
3193         (input_edge): Likewise.
3194         (output_node_opt_summary): Likewise.
3195         (input_node_opt_summary): Likewise.
3196         * ipa-pure-const.c (pure_const_write_summary): Likewise.
3197         (pure_const_read_summary): Likewise.
3198         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3199         (ipa_read_indirect_edge_info): Likewise.
3200         (ipa_write_node_info): Likewise.
3201         (ipa_read_node_info): Likewise.
3202
3203 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3204
3205         PR target/44534
3206         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3207         (vec_extract_lo_v16hi): Likewise.
3208         (vec_extract_lo_v32qi): Likewise.
3209
3210 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3211
3212         PR bootstrap/44426
3213         * tree.h (build_call_expr): Don't define as vararg macro, instead
3214         add a prototype.
3215         * builtins.c (build_call_nofold): Remove.
3216         (expand_builtin_int_roundingfn, expand_builtin_pow,
3217         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3218         expand_builtin_memset_args, expand_builtin_strcmp,
3219         expand_builtin_strncmp, expand_builtin_memory_chk): Use
3220         build_call_nofold_loc instead of build_call_nofold.
3221         (build_call_expr): New function.
3222
3223         PR tree-optimization/44508
3224         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3225         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3226         don't eliminate trivially dead stmts.
3227         * tree-vrp.c (vrp_finalize): Pass false as last argument
3228         to substitute_and_fold.
3229         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3230         to substitute_and_fold.
3231         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3232
3233         PR bootstrap/44509
3234         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3235
3236 2010-06-14  Ira Rosen  <irar@il.ibm.com>
3237
3238         PR tree-optimization/44507
3239         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3240         to build initial vector for BIT_AND_EXPR.
3241         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3242
3243 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3244
3245         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3246         adjust z10prop set_attr.
3247
3248 2010-06-13  Jan Hubicka  <jh@suse.cz>
3249
3250         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3251         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3252         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3253         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3254         datastructure checks into checking asserts.
3255         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3256         * tree-ssa-sccvn.c (VN_INFO): Likewise.
3257         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3258         df_ref_create_structure): Likewise.
3259         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3260         pool_free): Use gcc_checking_assert.
3261         * alias.c (get_alias_set): Likewise.
3262         * var-tracking.c (variable_htab_free, shared_hash_copy,
3263         canonicalize_values_mark, variable_merge_over_cur): Likewise.
3264         * lto-streamer.c (bp_unpack_value): Likewise.
3265
3266 2010-06-13  Richard Guenther  <rguenther@suse.de>
3267
3268         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3269         Do not stream but initialize TYPE_CANONICAL to NULL.
3270         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3271         * gimple.c (gimple_types_compatible_p): Disregard
3272         TYPE_STRUCTURAL_EQUALITY_P.
3273         (gimple_register_type): Use TYPE_CANONICAL as cache.
3274         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3275         before registering common types.
3276         * config/i386/i386.c (ix86_function_arg_boundary): Do not
3277         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3278         * tree.h (TYPE_CANONICAL): Clarify documentation.
3279
3280 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
3281
3282         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3283         LIBCALL_VALUE): Remove macros.
3284         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3285         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3286         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3287         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3288         (ia64_function_value): Make static. Handle receiving the function
3289         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3290
3291 2010-06-12  Jan Hubicka  <jh@suse.cz>
3292
3293         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3294         at correct place.
3295
3296 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
3297
3298         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3299
3300 2010-06-12  Jan Hubicka  <jh@suse.cz>
3301
3302         * df-core.c (df_clear_bb_info): New function.
3303         (df_set_blocks): bb_info is always allocated.
3304         (df_get_bb_info): Use block_info_elt_size.
3305         (df_set_bb_info): Likewise.
3306         (df_compact_blocks): Update for new block_info.
3307         (grow_bb_info): New function.
3308         * df-problems.c (df_grow_bb_info): Move to df-core.c
3309         (df_rd_set_bb_info): Remove.
3310         (df_rd_free_bb_info): Do not free block pool.
3311         (df_rd_alloc): Do not create pool, use check for
3312         obstack presence instead of NULL pointer for new blocks.
3313         (df_rd_free): DO not free alloc pool; clear block_info.
3314         (problem_RD): Add size of block info structure.
3315         (df_lr_set_bb_info): Remove.
3316         (df_lr_free_bb_info): Do not free block pool.
3317         (df_lr_alloc): Do not create pool, use check for
3318         obstack presence instead of NULL pointer for new blocks.
3319         (df_lr_free): DO not free alloc pool; clear block_info.
3320         (problem_LR): Add size of block info structure.
3321         (df_live_set_bb_info): Remove.
3322         (df_live_free_bb_info): Do not free block pool.
3323         (df_live_alloc): Do not create pool, use check for
3324         obstack presence instead of NULL pointer for new blocks.
3325         (df_live_free): DO not free alloc pool; clear block_info.
3326         (problem_LIVE): Add size of block info structure.
3327         (problem_CHAIN): Add size of block info structure.
3328         (df_byte_lr_set_bb_info): Remove.
3329         (df_byte_lr_free_bb_info): Do not free block pool.
3330         (df_byte_lr_alloc): Do not create pool, use check for
3331         obstack presence instead of NULL pointer for new blocks.
3332         (df_byte_lr_free): DO not free alloc pool; clear block_info.
3333         (problem_BYTE_LR): Add size of block info structure.
3334         (problem_NOTE): Add size of block info structure.
3335         (df_byte_MD_set_bb_info): Remove.
3336         (df_byte_MD_free_bb_info): Do not free block pool.
3337         (df_byte_MD_alloc): Do not create pool, use check for
3338         obstack presence instead of NULL pointer for new blocks.
3339         (df_byte_MD_free): DO not free alloc pool; clear block_info.
3340         (problem_BD): Add size of block info structure.
3341         * df-scan.c (df_scan_free_internal): Free block pool.
3342         (df_scan_set_bb_info): Remove.
3343         (df_scan_free_bb_info): Check for artificial_defs instead
3344         of bb_info being non-NULL.
3345         (df_scan_alloc): DO not create df_scan_block pool.
3346         (problem_SCAN): Set size of block info.
3347         (df_bb_refs_record): Do not allocate bb_info.
3348         * df.h (df_problem): Add block_info_elt_size.
3349         (struct dataflow): Change block_info to void *.
3350         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
3351         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
3352         in-line structures.
3353
3354 2010-06-12  Jan Hubicka  <jh@suse.cz>
3355
3356         PR tree-optimize/44485
3357         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
3358         containing use of return value of noreturn function.
3359
3360 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
3361
3362         * targhooks.c (default_function_value): Don't use
3363         FUNCTION_OUTGOING_VALUE.
3364         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
3365         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
3366
3367 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
3368
3369         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
3370         Add crtfastmath.o to extra_parts.
3371         * config/mips/crtfastmath.c: New.
3372         * config/mips/linux.h (ENDFILE_SPEC): New.
3373
3374 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
3375
3376         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
3377         old_type in parameter.
3378         (gcc_type_for_value): Update call to gcc_type_for_interval.
3379         (compute_type_for_level_1): Renamed compute_type_for_level.
3380         Update call to gcc_type_for_interval.
3381
3382 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3383
3384         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
3385         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
3386
3387 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3388
3389         * opts-common.c: Include options.h.
3390         (integral_argument): Move from opts.c.
3391         (decode_cmdline_option): New.  Based on read_cmdline_option.
3392         * opts.c (integral_argument): Move to opts-common.c.
3393         (read_cmdline_option): Move most contents to
3394         decode_cmdline_option.  Use %qs in diagnostics.
3395         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
3396         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
3397         decode_cmdline_option): New.
3398
3399 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3400
3401         PR target/44481
3402         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
3403         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
3404         (partiysi2_cmp): Ditto.
3405         (*partiyhi2_cmp): Ditto.
3406         (*parityqi2_cmp): Remove.
3407
3408 2010-06-11  Jan Hubicka  <jh@suse.cz>
3409
3410         * bitmap.h (bmp_iter_next_bit): New.
3411         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
3412
3413 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
3414             Eric Botcazou  <ebotcazou@adacore.com>
3415
3416         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
3417         computed cost.
3418
3419 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3420
3421         * config/i386/i386.md (unspec): New define_c_enum.
3422         (unspecv): Ditto.
3423
3424 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
3425
3426         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
3427
3428 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
3429
3430         PR middle-end/44483
3431         * tree-if-conv.c (bb_predicate_s): New struct.
3432         (bb_predicate_p): New.
3433         (bb_has_predicate): New.
3434         (bb_predicate): New.
3435         (set_bb_predicate): New.
3436         (bb_predicate_gimplified_stmts): New.
3437         (set_bb_predicate_gimplified_stmts): New.
3438         (add_bb_predicate_gimplified_stmts): New.
3439         (init_bb_predicate): New.
3440         (free_bb_predicate): New.
3441         (is_predicated): Use bb_predicate.
3442         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
3443         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
3444         before processing their successors.
3445         (clean_predicate_lists): Removed.
3446         (find_phi_replacement_condition): Use bb_predicate.
3447         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
3448         computations.
3449         (insert_gimplified_predicates): New.
3450         (combine_blocks): Call insert_gimplified_predicates.
3451         (tree_if_conversion): Call free_bb_predicate instead of
3452         clean_predicate_lists.
3453
3454 2010-10-11  Paul Brook  <paul@codesourcery.com>
3455
3456         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
3457         * config/arm/arm.c (all_architectures): Change v7e-m default to
3458         cortexm4.
3459         * config/arm/arm-cores.def: Add cortex-m4.
3460         * config/arm/arm-tune.md: Regenerate.
3461
3462 2010-06-11  Jan Hubicka  <jh@suse.cz>
3463
3464         * ipa-pure-const.c (special_builtlin_state): New function.
3465         (check_call): Use it instead of special casign BUILT_IN_RETURN.
3466         (propagate_pure_const): Use it.
3467
3468 2010-06-11  Jan Hubicka  <jh@suse.cz>
3469
3470         * df-problems.c (df_live_scratch): Convert to bitmap_head.
3471         (df_live_alloc): Initialize df_live_scratch when initializing
3472         problem_data.
3473         (df_live_transfer_function): Update uses of df_live_scratch.
3474         (df_live_free): Free problem_data; clear df_live_scratch before
3475         releasing the obstack.
3476         (df_md_free): Free problem data.
3477
3478 2010-06-11  Jan Hubicka  <jh@suse.cz>
3479
3480         * doc/invoke.texi (Wsuggest-attribute): Document.
3481         (Wmissing-noreturn): Remove.
3482         * ipa-pure-const.c (warn_function_noreturn): New function.
3483         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
3484         warn_missing_noreturn.
3485         * common.opt (Wsuggest-attribute=noreturn): New.
3486         * tree-flow.h (warn_function_noreturn): Declare.
3487         * tree-cfg.c (execute_warn_function_noreturn): Use
3488         warn_function_noreturn.
3489         (gate_warn_function_noreturn): New.
3490         (pass_warn_function_noreturn): Update.
3491
3492 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3493
3494         * c-typeck.c (handle_warn_cast_qual): Add loc
3495         parameter. Improve warning message.
3496         (build_c_cast): Pass location to handle_warn_cast_qual.
3497
3498 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3499
3500         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
3501         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
3502         insn mnemonic.
3503         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
3504
3505 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
3506
3507         Fix bootstap on mips
3508         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
3509         be naming typedefs.
3510
3511 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
3512
3513         * system.h (helper_const_non_const_cast): New inline for
3514         gcc version <= 4.0.
3515         (CONST_CAST2): For gcc version <= 4.0 use
3516         new helper to do const/non-const casting.
3517
3518 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3519
3520         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
3521         * Makefile.in (OBJS-common): Include insn-enums.o.
3522         (insn-enums.o): New rule.
3523         (simple_generated_c): Add insn-enums.c.
3524         (build/genenums.o): New rule.
3525         (genprogmd): Add "enums".
3526         * genconstants.c (print_enum_type): Declare a C string array
3527         for each enum.
3528         * genenums.c: New file.
3529         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
3530         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
3531         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
3532
3533 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3534
3535         * doc/md.texi (define_enum_attr): Document.
3536         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
3537         * read-md.h (lookup_enum_type): Declare.
3538         * read-md.c (lookup_enum_type): New function.
3539         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
3540         * genattrtab.c (attr_desc): Add an enum_name field.
3541         (evaluate_eq_attr): Take the associated attribute as argument.
3542         Get the enum prefix from the enum_name field, if defined.
3543         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
3544         (simplify_test_exp): Pass attr to evaluate_eq_attr.
3545         (add_attr_value): New function, split out from...
3546         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
3547         (write_test_expr): Pass attr to evaluate_eq_attr.
3548         (write_attr_get): Use the enum_name as the enum tag, if defined.
3549         (write_attr_valueq): Use the enum_name as a prefix, if defined.
3550         (find_attr): Initialize enum_name.
3551         (main): Handle DEFINE_ENUM_ATTR.
3552         * gensupport.c (process_rtx): Likewise.
3553         * config/mips/mips.h (mips_tune_attr): Delete.
3554         * config/mips/mips.md (cpu): Use define_attr_enum.
3555
3556 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3557
3558         * doc/md.texi (define_c_enum, define_enum): Document.
3559         * read-md.h (md_constant): Add a parent_enum field.
3560         (enum_value, enum_type): New structures.
3561         (upcase_string, traverse_enum_types): Declare.
3562         * read-md.c (enum_types): New variable.
3563         (upcase_string, add_constant): New functions.
3564         (handle_constants): Don't create the hash table here.
3565         Use add_constant.
3566         (traverse_md_constants): Don't check for a null md_constants.
3567         (decimal_string, handle_enum, traverse_enum_types): New functions.
3568         (read_md_files): Initialize md_constants and md_enums.
3569         * genconstants.c (print_md_constant): Ignore info argument.
3570         Only print constants that belong to no enum.
3571         (print_enum_type): New function.
3572         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
3573         for each defined enum type.
3574         * config/mips/mips.md (processor): New define_enum.
3575         (unspec): New define_c_enum.
3576         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
3577         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
3578         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
3579         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
3580         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
3581         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
3582         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
3583         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
3584         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
3585         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
3586         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
3587         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
3588         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
3589         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
3590         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
3591         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
3592         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
3593         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
3594         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
3595         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
3596         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
3597         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
3598         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3599         (UNSPEC_RDDSP): Move to mips-dsp.md.
3600         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
3601         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
3602         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
3603         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
3604         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
3605         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
3606         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
3607         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
3608         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
3609         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
3610         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
3611         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
3612         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
3613         Moved to mips-dspr2.md.
3614         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
3615         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
3616         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
3617         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
3618         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
3619         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
3620         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3621         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3622         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3623         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3624         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3625         UNSPEC_LOONGSON_PSADBH)
3626         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3627         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3628         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
3629         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3630         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3631         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3632         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
3633         (cpu): Update comment.
3634         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
3635         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
3636         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
3637         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
3638         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
3639         UNSPEC_LOONGSON_PCMPEQ)
3640         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
3641         UNSPEC_LOONGSON_PINSR_0)
3642         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3643         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3644         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3645         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3646         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3647         UNSPEC_LOONGSON_PSADBH)
3648         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3649         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3650         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
3651         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3652         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3653         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3654         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
3655         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
3656         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
3657         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
3658         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
3659         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
3660         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
3661         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
3662         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
3663         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
3664         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
3665         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
3666         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
3667         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
3668         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
3669         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
3670         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
3671         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
3672         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
3673         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
3674         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3675         (UNSPEC_RDDSP): Moved from mips.md.
3676         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
3677         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
3678         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
3679         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
3680         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
3681         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
3682         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
3683         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
3684         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
3685         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
3686         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
3687         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
3688         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
3689         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
3690         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
3691         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
3692         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
3693         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
3694         (UNSPEC_SCC): Moved from mips.md.
3695         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
3696         "processor_type" to "processor".
3697         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
3698         * config/mips/mips.h (processor_type): Delete.
3699         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
3700         "processor_type" to "processor".
3701
3702 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3703
3704         * configure.ac (tm_include_list): Add insn-constants.h.
3705         * configure: Regenerate.
3706         * Makefile.in (GTM_H): Move insn-constants.h here from...
3707         (TM_H): ...here.
3708         * mkconfig.sh: Remove special handling for insn-constants.h.
3709
3710 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3711
3712         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
3713         (BUILD_MD): ...this new variable.
3714         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
3715         that include the old contents of simple_generated_h and
3716         simple_generated_c.
3717         (simple_generated_h, simple_generated_c): Include them.  Add
3718         insn-constants.h.
3719         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
3720         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
3721         Remove these dependencies from the main rule and include
3722         insn-conditions.md in the command line only if it appears
3723         in the dependency list.
3724         (insn-constants.h, s-constants): Delete.
3725         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
3726         or gensupport.h.
3727         (build/genmddeps.o): Likewise.
3728         (genprogrtl): New variable that contains everything from genprogmd
3729         except mddeps and constants.
3730         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
3731         depend on $(BUILD_MD)
3732         (genprog): New variable.  Make these programs depend on
3733         $(BUILD_ERRORS).
3734         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
3735         (main): Use read_md_files instead of init_rtx_reader_args.
3736         * genconstants.c: As for genmddeps.c.
3737         * read-md.h (read_skip_construct): Declare.
3738         * read-md.c (read_skip_construct): New function.
3739         (handle_file): Allow a null handle_directive, skipping the
3740         construct if so.
3741         (parse_include): Update the comment accordingly.
3742
3743 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3744
3745         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
3746         * genmddeps.c: Include read-md.h.
3747         (main): Call init_rtx_reader_args instead of init_md_reader_args.
3748         * genattr.c (main): Likewise.
3749         * genattrtab.c (main): Likewise.
3750         * genautomata.c (main): Likewise.
3751         * gencodes.c (main): Likewise.
3752         * genconditions.c (main): Likewise.
3753         * genconfig.c (main): Likewise.
3754         * genconstants.c (main): Likewise.
3755         * genemit.c (main): Likewise.
3756         * genextract.c (main): Likewise.
3757         * genflags.c (main): Likewise.
3758         * genopinit.c (main): Likewise.
3759         * genoutput.c (main): Likewise.
3760         * genpeep.c (main): Likewise.
3761         * genrecog.c (main): Likewise.
3762         * genpreds.c (main): Likewise.
3763         * gensupport.h (in_fname): Move to read-md.h.
3764         (init_md_reader_args_cb): Rename to...
3765         (init_rtx_reader_args_cb): ...this and return a bool.
3766         (init_md_reader_args): Rename to...
3767         (init_rtx_reader_args): ...this and return a bool.
3768         (include_callback): Move to read-md.h.
3769         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
3770         (file_name_list, first_dir_md_include): Move to read-md.c
3771         (first_bracket_include): Delete unused variable.
3772         (last_dir_md_include): Move to read-md.c.
3773         (process_include): Delete, moving code to read-md.c:handle_include.
3774         (process_rtx): Don't handle INCLUDE.
3775         (save_string): Delete.
3776         (rtx_handle_directive): New function.
3777         (init_md_reader_args_cb): Rename to...
3778         (init_rtx_reader_args_cb): ...this and return a boolean success value.
3779         Use read_md_args.
3780         (init_md_reader_args): Rename to...
3781         (init_rtx_reader_args): ...this and return a boolean success value.
3782         * rtl.def (INCLUDE): Delete.
3783         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
3784         argument.
3785         * read-rtl.c (read_conditions): Don't gobble ')' here.
3786         (read_mapping): Likewise.
3787         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
3788         Handle top-level non-rtx constructs here rather than in read_rtx_1.
3789         Store the whole queue in *X.  Remove call to init_md_reader.
3790         (read_rtx_1): Rename to...
3791         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
3792         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
3793         here.
3794         (read_nested_rtx): New function.  Handle (nil) here rather than
3795         in read_rtx_code.
3796         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
3797         gobble ')' here.
3798         * read-md.h (directive_handler_t): New type.
3799         (in_fname, include_callback): Moved from read-md.h.
3800         (read_constants, init_md_reader): Delete.
3801         (read_md_files): Declare.
3802         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
3803         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
3804         from gensupport.c.
3805         (read_constants): Rename to...
3806         (handle_constants): ...this.  Don't gobble ')' here.
3807         (handle_include, handle_file, handle_toplevel_file)
3808         (parse_include): New functions, mostly taken from gensupport.c.
3809         (init_md_reader): Subsume into...
3810         (read_md_files): ...this new function.
3811
3812 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3813
3814         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
3815         (unread_char): Decrement read_md_lineno after putting back '\n'.
3816         * read-md.c (fatal_with_file_and_line): Push back any characters
3817         that we decide not to add to the context.
3818         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
3819         fatal_expected_char in cases where '/' ends a line (for example).
3820         (read_name): Don't increment read_md_lineno here.
3821         (read_escape): Likewise.
3822         (read_quoted_string): Likewise.
3823         (read_braced_string): Likewise.
3824
3825 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3826
3827         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
3828         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
3829         * genconstants.c: Include read-md.h.
3830         * read-rtl.c (md_constants): Move to read-md.c.
3831         (md_name): Move to read-md.h.
3832         (initialize_iterators): Use leading_string_hash instead of def_hash
3833         and leading_string_eq_p instead of def_name_eq_p.
3834         (read_name): Move to read-md.c.
3835         (def_hash, def_name_eq_p): Delete.
3836         (read_constants, traverse_md_constants): Move to read-md.c.
3837         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
3838         * read-md.h: Include hashtab.h.
3839         (md_name): Moved from read-rtl.c.
3840         (md_constant): Moved from read-md.h.
3841         (leading_string_hash, leading_string_eq_p, read_name)
3842         (read_constants, traverse_md_constants): Declare.
3843         * read-md.c (md_constants): Moved from read-rtl.c.
3844         (leading_string_hash, leading_string_eq_p): New functions.
3845         (read_name, read_constants, traverse_md_constants): Moved from
3846         read-rtl.c.
3847
3848 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3849
3850         * read-rtl.c (md_name): New structure.
3851         (read_name): Take an md_name instead of a buffer pointer.
3852         Use the "string" field instead of strcpy when expanding constants.
3853         (read_constants): Remove the tmp_char argument.  Update the calls
3854         to read_name, using two local name buffers instead of the tmp_char
3855         argument.  Merge the constant-creation code.
3856         (read_conditions): Remove the tmp_char argument.  Update the calls
3857         to read_name, using a local name buffer instead of the tmp_char
3858         argument.
3859         (read_mapping): Replace tmp_char variable with a local name buffer.
3860         Update the calls to read_name.
3861         (read_rtx_1): Likewise.  Update the calls to read_constants and
3862         read_conditions.
3863
3864 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3865
3866         * Makefile.in (build/read-md.o): Depend on errors.h.
3867         * read-md.h (error_with_line): Declare.
3868         * read-md.c: Include errors.h.
3869         (message_with_line_1): New function, extracted from...
3870         (message_with_line): ...here.
3871         (error_with_line): New function.
3872         * genattrtab.c: If a call to message_with_line is followed by
3873         "have_error = 1;", replace both statements with a call to
3874         error_with_line.
3875         * genoutput.c: Likewise.
3876         * genpreds.c: Likewise.
3877         * genrecog.c: If a call to message_with_line is followed by
3878         "error_count++;", replace both statements with a call to
3879         error_with_line.
3880         (errorcount): Delete.
3881         (main): Don't check it.
3882         * gensupport.c: If a call to message_with_line is followed by
3883         "errors = 1;", replace both statements with a call to error_with_line.
3884         (errors): Delete.
3885         (process_define_cond_exec): Check have_error instead of errors.
3886         (init_md_reader_args_cb): Likewise.  Don't set errors.
3887
3888 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3889
3890         * read-md.h (read_md_file): Declare.
3891         (read_char, unread_char): New functions.
3892         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
3893         (read_quoted_string, read_string): Remove FILE * argument.
3894         * read-md.c (read_md_file): New variable.
3895         (read_md_filename, read_md_lineno): Update comments and remove
3896         unnecessary initialization.
3897         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
3898         (read_escape, read_quoted_string, read_braced_string, read_string):
3899         Remove FILE * argument.  Update calls accordingly, using read_char
3900         and unread_char instead of getc and ungetc.
3901         * rtl.h (read_rtx): Remove FILE * argument.
3902         * read-rtl.c (iterator_group): Remove FILE * argument from
3903         "find_builtin".
3904         (iterator_traverse_data): Remove "infile" field.
3905         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
3906         (add_mapping, read_name, read_constants, read_conditions)
3907         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
3908         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
3909         Remove file arguments from all calls, using read_char and unread_char
3910         instead of getc and ungetc.
3911         * gensupport.c (process_include): Preserve read_md_file around
3912         the include.  Set read_md_file to the handle of the included file.
3913         Update call to read_rtx.
3914         (init_md_reader_args_cb): Set read_md_file to the handle of the file
3915         and remove local FILE *.  Update calls to read_rtx.
3916
3917 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3918
3919         * read-md.h (read_rtx_lineno): Rename to...
3920         (read_md_lineno): ...this.
3921         (read_rtx_filename): Rename to...
3922         (read_md_filename): ...this.
3923         (copy_rtx_ptr_loc): Rename to...
3924         (copy_md_ptr_loc): ...this.
3925         (print_rtx_ptr_loc): Rename to...
3926         (print_md_ptr_loc): ...this.
3927         * read-md.c: Likewise.  Update references after renaming.
3928         (string_obstack): Replace RTL with MD in comment.
3929         (set_rtx_ptr_loc): Rename to...
3930         (set_md_ptr_loc): ...this.
3931         (get_rtx_ptr_loc): Rename to...
3932         (get_md_ptr_loc): ...this.
3933         * genconditions.c: Update references after renaming.
3934         * genemit.c: Likewise.
3935         * genoutput.c: Likewise.
3936         * genpreds.c: Likewise.
3937         * gensupport.c: Likewise.
3938         * read-rtl.c: Likewise.
3939
3940 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3941
3942         * Makefile.in (READ_MD_H): New variable.
3943         (BUILD_RTL): Add build/read-md.o.
3944         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
3945         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
3946         (build/genattrtab.o, build/genconditions.o build/genemit.o)
3947         (build/genextract.o, build/genflags.o, build/genoutput.o)
3948         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
3949         (build/read-md.o): New rule.
3950         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
3951         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
3952         * coretypes.h: ...here.
3953         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
3954         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
3955         * genattr.c: Include read-md.h.
3956         * genattrtab.c: Likewise.
3957         * genconditions.c: Likewise.
3958         * genemit.c: Likewise.
3959         * genextract.c: Likewise.
3960         * genflags.c: Likewise.
3961         * genoutput.c: Likewise.
3962         * genpreds.c: Likewise.
3963         * genrecog.c: Likewise.
3964         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
3965         (join_c_conditions, print_c_condition, read_rtx_filename)
3966         (read_rtx_lineno): Move to read-md.h.
3967         * read-rtl.c: Include read-md.h.
3968         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
3969         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
3970         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
3971         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
3972         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
3973         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
3974         (read_braced_string, read_string): Move to read-md.c.
3975         (read_rtx): Move some initialization to init_md_reader and call
3976         init_md_reader here.
3977         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
3978         Move to read-md.h.
3979         * gensupport.c: Include read-md.h.
3980         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
3981         * read-md.h, read-md.c: New files.
3982
3983 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
3984
3985         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3986         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3987         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
3988         * config/moxie/moxie.c (moxie_function_value): Make static.
3989         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
3990         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3991
3992 2010-06-10  Martin Jambor  <mjambor@suse.cz>
3993
3994         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
3995         * dbgcnt.def (tree_sra): New counter.
3996         * tree-sra.c: Include dbgcnt.h.
3997         (gate_intra_sra): Check tree_sra debug counter.
3998
3999 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4000
4001         PR tree-optimization/44258
4002         * tree-sra.c (build_access_subtree): Return false iff there is a
4003         partial overlap.
4004         (build_access_trees): Likewise.
4005         (analyze_all_variable_accesses): Disqualify candidates if
4006         build_access_trees returns true for them.
4007
4008 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
4009
4010         PR debug/41371
4011         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4012         tail-recurse into canonical node.  Fast-forward over
4013         non-canonical VALUEs.
4014
4015 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
4016
4017         PR boostrap/44470
4018         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4019         (*addsi_1_zext) <TYPE_LEA>: Likewise.
4020         (add lea splitter): Likewise.
4021         (add_zext lea splitter): Likewise.
4022
4023 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4024
4025         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4026
4027 2010-06-10  Jan Hubicka  <jh@suse.cz>
4028
4029         * df-problems.c (df_live_problem_data): Add live_bitmaps.
4030         (df_live_alloc): Initialize problem data and live_osbtacks.
4031         (df_live_finalize): Remove obstack, problem data; do not
4032         clear all bitmaps.
4033         (df_live_top_dump, df_live_bottom_dump): Do not dump old
4034         data when not allocated.
4035         (df_live_verify_solution_start): Do not allocate problem data.
4036         (df_live_verify_solution_end): Check if out is allocated.
4037         (struct df_md_problem_data): New structure.
4038         (df_md_alloc): Allocate problem data.
4039         (df_md_free): Free problem data; do not clear bitmaps.
4040
4041 2010-06-10  Jan Beulich  <jbeulich@novell.com>
4042
4043         PR bootstrap/37304
4044         * configure.ac: Replace $() with ${} when intending to expand
4045         variables rather than invoking commands.
4046         * configure: Re-generate.
4047
4048 2010-06-10  Jan Hubicka  <jh@suse.cz>
4049
4050         PR rtl-optimization/44460
4051         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4052         TYPE_NEEDS_CONSTRUCTING sanity check.
4053
4054 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
4055
4056         * doc/include/fdl.texi: Move to GFDL version 1.3.
4057
4058         * doc/cpp.texi: Move to GFDL version 1.3.
4059         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
4060         * doc/gccint.texi: Move to GFDL version 1.3.
4061         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
4062         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
4063         * doc/invoke.texi: Move to GFDL version 1.3.
4064
4065 2010-06-09  Jan Hubicka  <jh@suse.cz>
4066
4067         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4068         Break out from ...
4069         (propagate) ... here; swap the order.
4070
4071 2010-06-09  Jan Hubicka  <jh@suse.cz>
4072
4073         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4074         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4075         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4076         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4077
4078 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4079
4080         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4081         Do not the gather memory reference in the outer loop if the step
4082         is not a constant.
4083
4084 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4085
4086         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4087         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4088         8 to 4.  Minor change of the related comments.
4089
4090 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4091
4092         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4093         the scev analysis when the variable is not used outside the loop
4094         in a close phi node: call compute_overall_effect_of_inner_loop.
4095
4096 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4097
4098         * graphite-sese-to-poly.c (single_pred_cond): Renamed
4099         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
4100         (build_sese_conditions_before): Renamed call to single_pred_cond.
4101         (build_sese_conditions_after): Same.
4102
4103 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4104
4105         * graphite-poly.h: Fix comments and indentation.
4106         * graphite-sese-to-poly.c: Same.
4107         (build_sese_conditions_before): Compute stmt and gbb only when needed.
4108         * tree-chrec.c: Fix comments and indentation.
4109         (tree-ssa-loop-niter.c): Same.
4110
4111 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4112
4113         PR rtl-optimization/42461
4114         * dce.c (deletable_insn_p): Return true for const or pure calls again.
4115         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4116
4117 2010-06-09  Jan Hubicka  <jh@suse.cz>
4118
4119         * bitmap.c (bitmap_and): Walk array forward.
4120         (bitmap_and_compl_into): Likewise.
4121         (bitmap_xor): Likewise.
4122         (bitmap_xor_into):  Likewise.
4123         (bitmap_equal_p): Likewise.
4124         (bitmap_intersect_p): Likewise.
4125         (bitmap_intersect_compl_p): Likewise.
4126         (bitmap_ior_and_into): Likewise.
4127         (bitmap_elt_copy): Likewise.
4128         (bitmap_and_compl): Likewise.
4129         (bitmap_elt_ior): Likewise.
4130
4131 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
4132
4133         * opts-common.c (prune_options): Ensure replacement argv array
4134         is correctly terminated by a NULL entry.
4135
4136 2010-06-09  Jan Hubicka  <jh@suse.cz>
4137
4138         * cgraph.h (varpool_first_static_initializer,
4139         varpool_next_static_initializer): Make checking only when
4140         checking enabled.
4141         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4142         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4143         gcc_assert to gcc_checking_assert.
4144         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4145         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4146         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4147         op_iter_init_phiuse, op_iter_init_phidef,
4148         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4149         gcc_checking_assert.
4150         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4151         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4152         partition_is_global, live_on_entry, live_on_exit,
4153         live_merge_and_clear): Likewise.
4154         * system.h (gcc_checking_assert): New macro.
4155         * gimple.h (set_bb_seq): Use gcc_checking_assert.
4156
4157 2010-06-09  Jason Merrill  <jason@redhat.com>
4158
4159         * Makefile.in (TAGS): Collect tags info from c-family.
4160
4161 2010-06-09  Jan Hubicka  <jh@suse.cz>
4162
4163         * gimple.h (gcc_gimple_checking_assert): New macro.
4164         (gimple_set_def_ops, gimple_set_use_ops,
4165         gimple_set_vuse, gimple_set_vdef,
4166         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4167         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4168         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4169         gimple_asm_output_op, gimple_asm_output_op_ptr,
4170         gimple_asm_set_output_op, gimple_asm_clobber_op,
4171         gimple_asm_set_clobber_op, gimple_asm_label_op,
4172         gimple_asm_set_label_op, gimple_try_set_kind,
4173         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4174         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4175         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4176         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4177         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4178         gimple_omp_for_set_initial, gimple_omp_for_final,
4179         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4180         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4181         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4182         conditional with ENABLE_GIMPLE_CHECKING.
4183         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4184
4185 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
4186
4187         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4188         (get_computation_cost_at): Use it.
4189         (determine_use_iv_cost_condition): Likewise.
4190         (determine_iv_cost): Likewise.
4191
4192 2010-06-09  Richard Guenther  <rguenther@suse.de>
4193
4194         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4195         replace constants.
4196
4197 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
4198
4199         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4200
4201 2010-06-09  Martin Jambor  <mjambor@suse.cz>
4202
4203         PR tree-optimization/44423
4204         * tree-sra.c (dump_access): Dump also grp_assignment_read.
4205         (analyze_access_subtree): Pass negative allow_replacements to children
4206         if the current type is scalar.
4207
4208 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4209
4210         PR testsuite/42843
4211         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4212         * doc/plugins.texi (Plugin license check): Update information
4213         on type of plugin_is_GPL_compatible.
4214         * Makefile.in (PLUGINCC): Define as $(COMPILER).
4215         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4216
4217 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
4218
4219         * config/arm/arm.c (thumb2_reorg): New function.
4220         (arm_reorg): Call it.
4221         * config/arm/thumb2.md (define_peephole2 for flag clobbering
4222         arithmetic operations): Delete.
4223
4224 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
4225
4226         PR target/44067
4227         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4228         e500v2 target.
4229
4230 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4231
4232         PR plugins/44459
4233         * gcc-plugin.h: Encapsulate all declarations in extern "C".
4234
4235 2010-06-08  Jan Hubicka  <jh@suse.cz>
4236
4237         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4238         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4239
4240 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
4241
4242         PR tree-optimization/39874
4243         PR middle-end/28685
4244         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4245         Declare.
4246         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4247         same_bool_result_p): New.
4248         (and_var_with_comparison, and_var_with_comparison_1,
4249         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4250         (or_var_with_comparison, or_var_with_comparison_1,
4251         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4252         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4253         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4254         of combine_comparisons.
4255         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4256
4257 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
4258
4259         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4260         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4261         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4262         pdp11_function_value_regno_p): New functions.
4263         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4264         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4265
4266 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
4267
4268         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4269         Thumb-2 in the MINUS case.
4270
4271 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4272
4273         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4274
4275         * doc/gty.texi (GTY Options): Document typed GC allocation and
4276         variable_size GTY option.
4277
4278         * ggc-internal.h: New.
4279
4280         * ggc.h: Update copyright year.
4281         (digit_string): Move to stringpool.c.
4282         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4283         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4284         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4285         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4286         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4287         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4288         (ggc_force_collect, ggc_get_size, ggc_statistics)
4289         (ggc_print_common_statistics): Move to ggc-internal.h.
4290         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4291         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4292         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4293         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4294         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4295         (ggc_alloc_zone_pass_stat): Remove.
4296         (ggc_internal_alloc_stat, ggc_internal_alloc)
4297         (ggc_internal_cleared_alloc_stat): New.
4298         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4299         (ggc_internal_vec_alloc_stat)
4300         (ggc_internal_cleared_vec_alloc_stat)
4301         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4302         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4303         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4304         (ggc_cleared_alloc_ptr_array_two_args): New.
4305         (htab_create_ggc, splay_tree_new_ggc): Redefine.
4306         (ggc_splay_alloc): Change the type of the first argument to
4307         enum gt_types_enum.
4308         (ggc_alloc_string): Make macro.
4309         (ggc_alloc_string_stat): New.
4310         (ggc_strdup): Redefine.
4311         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4312         (ggc_alloc_rtvec_sized): New.
4313         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4314         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4315         (ggc_internal_cleared_alloc_zone_stat)
4316         (ggc_internal_zone_alloc_stat)
4317         (ggc_internal_zone_cleared_alloc_stat)
4318         (ggc_internal_zone_vec_alloc_stat)
4319         (ggc_alloc_zone_rtx_def_stat)
4320         (ggc_alloc_zone_tree_node_stat)
4321         (ggc_alloc_zone_cleared_tree_node_stat)
4322         (ggc_alloc_cleared_gimple_statement_d_stat): New.
4323
4324         * ggc-common.c: Include ggc-internal.h.
4325         (ggc_internal_cleared_alloc_stat): Rename from
4326         ggc_alloc_cleared_stat.
4327         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4328         (ggc_calloc): Remove.
4329         (ggc_cleared_alloc_htab_ignore_args): New.
4330         (ggc_cleared_alloc_ptr_array_two_args): New.
4331         (ggc_splay_alloc): Add obj_type parameter.
4332         (init_ggc_heuristics): Formatting fixes.
4333
4334         * ggc-none.c: Update copyright year.
4335         (ggc_alloc_stat): Rename to ggc_alloc_stat.
4336         (ggc_alloc_cleared_stat): Rename to
4337         ggc_internal_cleared_alloc_stat.
4338         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4339
4340         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
4341         Remove references to ggc_alloc in comments.
4342         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
4343         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
4344         (new_ggc_zone, destroy_ggc_zone): Remove.
4345         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4346
4347         * ggc-zone.c: Include ggc-internal.h.  Remove references to
4348         ggc_alloc in comments.
4349         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
4350         (ggc_internal_alloc_zone_pass_stat): New.
4351         (ggc_internal_cleared_alloc_zone_stat): New.
4352         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
4353         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
4354         (new_ggc_zone, destroy_ggc_zone): Remove.
4355
4356         * stringpool.c: Update copyright year.  Include ggc-internal.h
4357         (digit_vector): Make static.
4358         (digit_string): Moved from ggc.h.
4359         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
4360         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
4361
4362         * Makefile.in (GGC_INTERNAL_H): New.
4363         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
4364         $(GGC_INTERNAL_H) to dependencies.
4365
4366         * gentype.c: Update copyright year.
4367         (walk_type): Accept variable_size GTY option.
4368         (USED_BY_TYPED_GC_P): New macro.
4369         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
4370         whitespace at the end of strings.
4371         (get_type_specifier, variable_size_p): New functions.
4372         (alloc_quantity, alloc_zone): New enums.
4373         (write_typed_alloc_def): New function.
4374         (write_typed_struct_alloc_def): Likewise.
4375         (write_typed_typed_typedef_alloc_def): Likewise.
4376         (write_typed_alloc_defns): Likewise.
4377         (output_typename, write_splay_tree_allocator_def): Likewise.
4378         (write_splay_tree_allocators): Likewise.
4379         (main): Call write_typed_alloc_defns and
4380         write_splay_tree_allocators.
4381
4382         * lto-streamer.h (lto_file_decl_data_ptr): New.
4383
4384         * passes.c (order): Define using cgraph_node_ptr.
4385
4386         * strinpool.c (struct string_pool_data): Declare nested_ptr using
4387         ht_identifier_ptr.
4388
4389         * gimple.h (union gimple_statement_d): Likewise.
4390
4391         * rtl.h (struct rtx_def): Likewise.
4392         (struct rtvec_def): Likewise.
4393
4394         * tree.h (union tree_node): Likewise.
4395
4396         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
4397
4398         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
4399
4400         * tree-scalar-evolution.c (scev_initialize): Likewise.
4401
4402         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
4403
4404         * dwarf2asm.c (dw2_force_const_mem): Likewise.
4405
4406         * omp-low.c (lower_omp_critical): Likewise.
4407
4408         * bitmap.h (struct bitmap_head_def): Update comment to not
4409         reference ggc_alloc.
4410
4411         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
4412
4413         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
4414
4415         * ipa-prop.c (duplicate_ggc_array): Rename to
4416         duplicate_ipa_jump_func_array.  Use typed GC allocation.
4417         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
4418
4419         * gimple.c (gimple_alloc_stat): Use
4420         ggc_alloc_cleared_gimple_statement_d_stat.
4421
4422         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
4423
4424         * tree.c (make_node_stat): Use
4425         ggc_alloc_zone_cleared_tree_node_stat.
4426         (make_tree_vec_stat): Likewise.
4427         (build_vl_exp_stat): Likewise.
4428         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
4429         (make_tree_binfo_stat): Likewise.
4430         (tree_cons_stat): Likewise.
4431
4432         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
4433         (shallow_copy_rtx_stat): Likewise.
4434         (make_node_stat): Likewise.
4435
4436         * lto-symtab.c: Fix comment.
4437
4438         * tree-cfg.c (create_bb): Update comment to not reference
4439         ggc_alloc_cleared.
4440         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
4441
4442         * varpool.c (varpool_node): Use typed GC allocation.
4443         (varpool_extra_name_alias): Likewise.
4444
4445         * varasm.c (emutls_decl): Likewise.
4446         (get_unnamed_section): Likewise.
4447         (get_noswitch_section): Likewise.
4448         (get_section): Likewise.
4449         (get_block_for_section): Likewise.
4450         (build_constant_desc): Likewise.
4451         (create_constant_pool): Likewise.
4452         (force_const_mem): Likewise.
4453
4454         * tree.c (build_vl_exp_stat): Likewise.
4455         (build_real): Likewise.
4456         (build_string): Likewise.
4457         (decl_debug_expr_insert): Likewise.
4458         (decl_value_expr_insert): Likewise.
4459         (type_hash_add): Likewise.
4460         (build_omp_clause): Likewise.
4461
4462         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
4463
4464         * tree-ssa.c (init_tree_ssa): Likewise.
4465
4466         * tree-ssa-structalias.c (heapvar_insert): Likewise.
4467
4468         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4469
4470         * tree-ssa-loop-niter.c (record_estimate): Likewise.
4471
4472         * tree-ssa-alias.c (get_ptr_info): Likewise.
4473
4474         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4475
4476         * tree-phinodes.c (allocate_phi_node): Likewise.
4477
4478         * tree-iterator.c (tsi_link_before): Likewise.
4479         (tsi_link_after): Likewise.
4480
4481         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4482
4483         * tree-dfa.c (create_var_ann): Likewise.
4484
4485         * tree-cfg.c (create_bb): Likewise.
4486
4487         * toplev.c (alloc_for_identifier_to_locale): Likewise.
4488         (general_init): Likewise.
4489
4490         * stringpool.c (stringpool_ggc_alloc): Likewise.
4491         (gt_pch_save_stringpool): Likewise.
4492
4493         * sese.c (if_region_set_false_region): Likewise.
4494
4495         * passes.c (do_per_function_toporder): Likewise.
4496
4497         * optabs.c (set_optab_libfunc): Likewise.
4498         (set_conv_libfunc): Likewise.
4499
4500         * lto-symtab.c (lto_symtab_register_decl): Likewise.
4501
4502         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4503         (input_eh_region): Likewise.
4504         (input_eh_lp): Likewise.
4505         (make_new_block): Likewise.
4506         (unpack_ts_real_cst_value_fields): Likewise.
4507
4508         * lto-section-in.c (lto_new_in_decl_state): Likewise.
4509
4510         * lto-cgraph.c (input_node_opt_summary): Likewise.
4511
4512         * loop-init.c (loop_optimizer_init): Likewise.
4513
4514         * lambda.h (lambda_vector_new): Likewise.
4515
4516         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4517
4518         * ira.c (update_equiv_regs): Likewise.
4519
4520         * ipa.c (cgraph_node_set_new): Likewise.
4521         (cgraph_node_set_add): Likewise.
4522         (varpool_node_set_new): Likewise.
4523         (varpool_node_set_add): Likewise.
4524
4525         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
4526         (duplicate_ipa_jump_func_array): Likewise.
4527         (ipa_read_node_info): Likewise.
4528
4529         * ipa-cp.c (ipcp_create_replace_map): Likewise.
4530
4531         * integrate.c (get_hard_reg_initial_val): Likewise.
4532
4533         * gimple.c (gimple_alloc_stat): Likewise.
4534         (gimple_build_omp_for): Likewise.
4535         (gimple_seq_alloc): Likewise.
4536         (gimple_copy): Likewise.
4537
4538         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
4539         (gsi_insert_after_without_update): Likewise.
4540
4541         * function.c (add_frame_space): Likewise.
4542         (insert_temp_slot_address): Likewise.
4543         (assign_stack_temp_for_type): Likewise.
4544         (allocate_struct_function): Likewise.
4545         (types_used_by_var_decl_insert): Likewise.
4546
4547         * except.c (init_eh_for_function): Likewise.
4548         (gen_eh_region): Likewise.
4549         (gen_eh_region_catch): Likewise.
4550         (gen_eh_landing_pad): Likewise.
4551         (add_call_site): Likewise.
4552
4553         * emit-rtl.c (get_mem_attrs): Likewise.
4554         (get_reg_attrs): Likewise.
4555         (start_sequence): Likewise.
4556         (init_emit): Likewise.
4557
4558         * dwarf2out.c (new_cfi): Likewise.
4559         (queue_reg_save): Likewise.
4560         (dwarf2out_frame_init): Likewise.
4561         (new_loc_descr): Likewise.
4562         (find_AT_string): Likewise.
4563         (new_die): Likewise.
4564         (add_var_loc_to_decl): Likewise.
4565         (clone_die): Likewise.
4566         (clone_as_declaration): Likewise.
4567         (break_out_comdat_types): Likewise.
4568         (new_loc_list): Likewise.
4569         (loc_descriptor): Likewise.
4570         (add_loc_descr_to_each): Likewise.
4571         (add_const_value_attribute): Likewise.
4572         (tree_add_const_value_attribute): Likewise.
4573         (add_comp_dir_attribute): Likewise.
4574         (add_name_and_src_coords_attributes): Likewise.
4575         (lookup_filename): Likewise.
4576         (store_vcall_insn): Likewise.
4577         (dwarf2out_init): Likewise.
4578
4579         * dbxout.c (dbxout_init): Likewise.
4580
4581         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4582
4583         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4584
4585         * config/score/score7.c (score7_output_external): Likewise.
4586
4587         * config/score/score3.c (score3_output_external): Likewise.
4588
4589         * config/s390/s390.c (s390_init_machine_status): Likewise.
4590
4591         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4592         (rs6000_init_machine_status): Likewise.
4593         (output_toc): Likewise.
4594
4595         * config/pa/pa.c (pa_init_machine_status): Likewise.
4596         (get_deferred_plabel): Likewise.
4597
4598         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4599
4600         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4601
4602         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4603
4604         * config/mep/mep.c (mep_init_machine_status): Likewise.
4605         (mep_note_pragma_flag): Likewise.
4606
4607         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4608
4609         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4610
4611         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4612
4613         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4614         (i386_pe_maybe_record_exported_symbol): Likewise.
4615
4616         * config/i386/i386.c (get_dllimport_decl): Likewise.
4617         (ix86_init_machine_status): Likewise.
4618         (assign_386_stack_local): Likewise.
4619
4620         * config/frv/frv.c (frv_init_machine_status): Likewise.
4621
4622         * config/darwin.c (machopic_indirection_name): Likewise.
4623
4624         * config/cris/cris.c (cris_init_machine_status): Likewise.
4625
4626         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4627
4628         * config/avr/avr.c (avr_init_machine_status): Likewise.
4629
4630         * config/arm/arm.c (arm_init_machine_status): Likewise.
4631
4632         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4633         (alpha_need_linkage): Likewise.
4634         (alpha_use_linkage): Likewise.
4635
4636         * cgraph.c (cgraph_allocate_node): Likewise.
4637         (cgraph_create_edge_1): Likewise.
4638         (cgraph_create_indirect_edge): Likewise.
4639         (cgraph_add_asm_node): Likewise.
4640
4641         * cfgrtl.c (init_rtl_bb_info): Likewise.
4642
4643         * cfgloop.c (alloc_loop): Likewise.
4644         (rescan_loop_exit): Likewise.
4645
4646         * cfg.c (init_flow): Likewise.
4647         (alloc_block): Likewise.
4648         (unchecked_make_edge): Likewise.
4649
4650         * c-parser.c (c_parse_init): Likewise.
4651         (c_parse_file): Likewise.
4652
4653         * c-decl.c (bind): Likewise.
4654         (record_inline_static): Likewise.
4655         (push_scope): Likewise.
4656         (make_label): Likewise.
4657         (lookup_label_for_goto): Likewise.
4658         (finish_struct): Likewise.
4659         (finish_enum): Likewise.
4660         (c_push_function_context): Likewise.
4661
4662         * bitmap.c (bitmap_element_allocate): Likewise.
4663         (bitmap_gc_alloc_stat): Likewise.
4664
4665         * alias.c (record_alias_subset): Likewise.
4666         (init_alias_analysis): Likewise.
4667
4668 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
4669
4670         * fold-const.c (fold_comparison): Remove redundant parenthesis.
4671         * tree-inline.c (expand_call_inline): Pass translated return value of
4672         cgraph_inline_failed_string to diagnostic function.
4673
4674 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
4675             Shujing Zhao  <pearly.zhao@oracle.com>
4676
4677         PR c/37724
4678         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
4679         implicit bad conversions is initialization.
4680         (error_init): Use gmsgid instead of msgid for argument name and change
4681         the call for error.
4682         (pedwarn_init): Use gmsgid instead of msgid for argument name and
4683         change the call for pedwarn.
4684         (warning_init): Use gmsgid instead of msgid for argument name and
4685         change the call for warning.
4686
4687 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
4688
4689         * config/mips/mips-protos.h (mips_print_operand): Delete.
4690         (mips_print_operand_address): Delete.
4691         * config/mips/mips.h (mips_print_operand_punct): Delete.
4692         (PRINT_OPERAND): Delete.
4693         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4694         (PRINT_OPERAND_ADDRESS): Delete.
4695         * config/mips/mips.c (mips_print_operand_punct): Make static.
4696         (mips_print_operand_address): Make static.
4697         (mips_print_operand): Make static.  Call
4698         mips_print_operand_punct_valid_p.
4699         (mips_print_operand_punct_valid_p): New function.
4700         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4701         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4702
4703 2010-06-07  Jan Hubicka  <jh@suse.cz>
4704
4705         PR middle-end/44454
4706         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
4707         are allocated.
4708
4709 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4710
4711         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
4712         name of RECORD.
4713
4714 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4715
4716         * doc/sourcebuild.texi (Effective-Target Keywords, Other
4717         attributes): Document gas.
4718
4719 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
4720
4721         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
4722         <TYPE_LEA>: Split instruction.
4723         <default>: Remove alternative 2 handling.
4724         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
4725         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
4726         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
4727
4728         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
4729         (ashift_zext lea splitter): Use DImode for multiplication.
4730
4731         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
4732         to generate addition.
4733
4734 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4735
4736         * common.opt (fira-verbose): Use Var.
4737         (fpcc-struct-return): Use Init instead of VarExists.
4738         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
4739         toplev.c.
4740         * flags.h (flag_signed_char, flag_short_enums,
4741         flag_pcc_struct_return, flag_ira_verbose,
4742         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
4743         * toplev.c (flag_detailed_statistics, flag_signed_char,
4744         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
4745         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
4746         * toplev.h (flag_crossjumping, flag_if_conversion,
4747         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
4748         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
4749         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
4750         flag_cprop_registers, time_report, flag_ira_loop_pressure,
4751         flag_ira_coalesce, flag_ira_move_spills,
4752         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
4753
4754 2010-06-07  Jan Hubicka  <jh@suse.cz>
4755
4756         * df-core.c (df_analyze_problem): Do verification after allocation.
4757
4758         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
4759         (df_lr_alloc): Initialize problem data; move bitmaps to
4760         lr_bitmaps obstack.
4761         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
4762         (df_lr_verify_solution_start): Do not initialize problem data;
4763         allocate bitmaps in lr_bitmaps.
4764         (df_lr_verify_solution_end): Do not free problem data.
4765
4766 2010-06-07  Jan Hubicka  <jh@suse.cz>
4767
4768         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
4769         if caller is noreturn.
4770         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
4771         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
4772         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
4773         * ipa-pure-const.c (check_decl): Add IPA parameter.
4774         (state_from_flags): New function.
4775         (better_state, worse_state): New functions.
4776         (check_call): When in IPA mode, do not care about callees.
4777         (check_load, check_store): Update.
4778         (check_ipa_load, check_ipa_store): New.
4779         (check_stmt): When in IPA mode, use IPA checkers.
4780         (analyze_function): Use state_from_flags.
4781         (propagate): Check indirect edges and references.
4782
4783 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
4784
4785         PR rtl-optimization/44404
4786         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
4787         of count_occurrences to see if it's safe to modify mem_insn.
4788
4789 2010-06-07  Richard Guenther  <rguenther@suse.de>
4790
4791         * gimplify.c (gimplify_cleanup_point_expr): For empty body
4792         and EH-only cleanup drop the cleanup instead of inserting it
4793         unconditionally.
4794
4795 2010-06-07  Ira Rosen  <irar@il.ibm.com>
4796
4797         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
4798         documentation.
4799         * targhooks.c (default_builtin_vectorization_cost): New function.
4800         * targhooks.h (default_builtin_vectorization_cost): Declare.
4801         * target.h (enum vect_cost_for_stmt): Define.
4802         (builtin_vectorization_cost): Change argument and comment.
4803         * tree-vectorizer.h: Remove cost model macros.
4804         * tree-vect-loop.c: Include target.h.
4805         (vect_get_cost): New function.
4806         (vect_estimate_min_profitable_iters): Replace cost model macros with
4807         calls to vect_get_cost.
4808         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
4809         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
4810         default implementation.
4811         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
4812         calls to target hook builtin_vectorization_cost.
4813         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
4814         Likewise.
4815         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
4816         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
4817         implementation to return costs.
4818         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4819         * config/spu/spu.h: Remove vectorizer cost model macros.
4820         * config/i386/i386.h: Likewise.
4821         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
4822         a call to target hook builtin_vectorization_cost.
4823
4824 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
4825
4826         PR target/44319
4827         * config/i386/i386.c (override_options): Turn zee pass on for level 2
4828         and above and defer till target is known.
4829         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
4830         turn off otherwise.
4831
4832 2010-05-25  Jan Hubicka  <jh@suse.cz>
4833
4834         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
4835         (df_compact_blocks): Likewise.
4836         * df.h (struct df): Turn hardware_regs_used,
4837         regular_block_artificial_uses, eh_block_artificial_uses,
4838         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
4839         bitmap_head.
4840         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
4841         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
4842         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
4843         df_scan_blocks, df_insn_delete, df_insn_rescan,
4844         df_insn_rescan_debug_internal, df_insn_rescan_all,
4845         df_process_deferred_rescans, df_process_deferred_rescans,
4846         df_notes_rescan, df_get_call_refs, df_get_call_refs,
4847         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
4848         df_record_entry_block_defs, df_record_exit_block_uses,
4849         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
4850         df_scan_verify): Update.
4851
4852 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
4853
4854         PR c++/44188
4855         * c-common.c (is_typedef_decl): Move this definition ...
4856         * tree.c (is_typedef_decl): ... here.
4857         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4858         * c-common.h (is_typedef_decl): Move this declaration ...
4859         * tree.h (is_typedef_decl): ... here.
4860         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4861         * dwarf2out.c (is_naming_typedef_decl): New function.
4862         (gen_tagged_type_die): Split out of ...
4863         (gen_type_die_with_usage): ... this function. When an anonymous
4864         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4865         is emitted for the typedef.
4866         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4867         anonymous tagged types.
4868
4869 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4870
4871         PR c/20000
4872         * c-decl.c (grokdeclarator): Delete warning.
4873
4874 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
4875
4876         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
4877         newly built CALL_EXPR.
4878         * tree-profile.c (tree_profiling): Don't profile functions produced
4879         for built-in stuff.
4880
4881 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
4882
4883         PR bootstrap/44427
4884         PR bootstrap/44428
4885         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
4886         endianness-independent.
4887
4888 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4889
4890         * c-common.c: Move to c-family/.
4891         * c-common.def: Likewise.
4892         * c-common.h: Likewise.
4893         * c-cppbuiltin.c: Likewise.
4894         * c-dump.c: Likewise.
4895         * c-format.c: Likewise.
4896         * c-format.h : Likewise.
4897         * c-gimplify.c: Likewise.
4898         * c-lex.c: Likewise.
4899         * c-omp.c: Likewise.
4900         * c.opt: Likewise.
4901         * c-opts.c: Likewise.
4902         * c-pch.c: Likewise.
4903         * c-ppoutput.c: Likewise.
4904         * c-pragma.c: Likewise.
4905         * c-pragma.h: Likewise.
4906         * c-pretty-print.c: Likewise.
4907         * c-pretty-print.h: Likewise.
4908         * c-semantics.c: Likewise.
4909         * stub-objc.c: Likewise.
4910
4911         * gengtype.c (get_file_langdir): Special-case files in c-family/.
4912         (get_output_file_with_visibility): Fix name for c-common.h.
4913         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
4914
4915         * c-tree.h: Update include path for moved files.
4916         * c-lang.c: Likewise.
4917         * c-lang.h: Likewise.
4918         * c-parser.c: Likewise.
4919         * c-convert.c: Likewise.
4920         * c-decl.c: Likewise.
4921         * c-objc-common.c: Likewise.
4922         * configure.ac: Make sure c-family/ exists in the build directory.
4923         * configure: Regenerate.
4924         * Makefile.in: Update paths for moved files.  Regroup files per
4925         location and update dependencies.  Move generated_files down after
4926         ALL_GTFILES_H.
4927
4928         * config/spu/spu-c.c: Update paths for moved files.
4929         * config/mep/mep-pragma.c: Likewise.
4930         * config/darwin-c.c: Likewise.
4931         * config/i386/msformat-c.c: Likewise.
4932         * config/i386/i386-c.c: Likewise.
4933         * config/avr/avr-c.c: Likewise.
4934         * config/sol2-c.c: Likewise.
4935         * config/ia64/ia64-c.c: Likewise.
4936         * config/rs6000/rs6000-c.c: Likewise.
4937         * config/arm/arm.c: Likewise.
4938         * config/arm/arm-c.c: Likewise.
4939         * config/h8300/h8300.c: Likewise.
4940         * config/v850/v850-c.c: Likewise.
4941
4942         * config/t-darwin: Fix dependencies for moved files.
4943         * config/t-sol2: Fix dependencies for moved files.
4944         * config/mep/t-mep: Fix dependencies for moved files.
4945         * config/ia64/t-ia64: Fix dependencies for moved files.
4946         * config/rs6000/t-rs6000: Fix dependencies for moved files.
4947         * config/v850/t-v850: Fix dependencies for moved files.
4948         * config/v850/t-v850e: Fix dependencies for moved files.
4949
4950         * config/m32c/m32c-pragma.c
4951
4952         * po/exgettext: Look in c-family/ also.
4953
4954 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
4955
4956         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
4957         (mark_control_dependent_edges_necessary): Call it instead of marking
4958         the last statement manually.
4959         (propagate_necessity): Likewise.
4960
4961 2010-06-05  Jan Hubicka  <jh@suse.cz>
4962
4963         * basic-block.h (compute_dominance_frontiers): Updated.
4964         (compute_idf): Likewise.
4965
4966         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
4967         for dominance frontiers.
4968         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
4969         (insert_updated_phi_nodes_for): Likewise.
4970         (update_ssa): Likewise.
4971         * cfganal.c (compute_dominance_frontiers_1): Likewise.
4972         (compute_dominance_frontiers): Likewise.
4973         (compute_idf): Likewise.
4974         * df-problems.c (df_md_local_compute): Likewise.
4975
4976 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
4977
4978         * target.h (struct gcc_target): Add memory_move_cost field.
4979         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
4980         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
4981         * targhooks.c (default_memory_move_cost): New function.
4982         * targhooks.h (default_memory_move_cost): Declare function.
4983         * reload.h (memory_move_cost): Declare.
4984         (memory_move_secondary_cost): Change type of 'in' argument to bool.
4985         * reginfo.c (memory_move_cost): New function.
4986         (memory_move_secondary_cost): Change type of 'in' argument to bool.
4987         * ira.h (ira_memory_move_cost): Update comment.
4988         * ira.c: (ira_memory_move_cost): Update comment.
4989         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
4990         with memory_move_cost.
4991         * postreload.c (reload_cse_simplify_set): (Ditto.).
4992         * reload1.c (choose_reload_regs): (Ditto.).
4993         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
4994         (MEMORY_MOVE_COST):  Revise documentation.
4995
4996         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4997         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4998         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
4999         type of 'in' argument to bool.
5000         (TARGET_MEMORY_MOVE_COST): Define.
5001
5002 2010-06-05  Jan Hubicka  <jh@suse.cz>
5003
5004         * ipa-pure-const.c (propagate): Fix typo in handling of functions
5005         that cannot return.  Be more careful when merging the results with
5006         previously known ones.
5007
5008 2010-06-05  Matthias Klose  <doko@ubuntu.com>
5009
5010         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5011         function to add the -iplugindir option.
5012         (find_plugindir_spec_function): Add new declaration and function.
5013         (static_spec_func): Use it for "find-plugindir".
5014
5015 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
5016
5017         PR c++/44361
5018         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5019         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5020         statement expression.
5021
5022 2010-06-05  Jan Hubicka  <jh@suse.cz>
5023
5024         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5025         (df_rd_problem_data): Convert sparse_invalidated_by_call,
5026         dense_invalidated_by_call to bitmap head.
5027         (df_rd_alloc, df_rd_bb_local_compute_process_def,
5028         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5029         df_rd_start_dump, df_lr_verify_transfer_functions,
5030         df_live_verify_transfer_functions, df_chain_create_bb,
5031         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5032         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5033         df_simulate_one_insn_forwards, df_md_alloc,
5034         df_md_bb_local_compute_process_def,
5035         df_md_bb_local_compute_process_def, df_md_local_compute,
5036         df_md_transfer_function df_md_free): Update.
5037
5038 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
5039
5040         PR c/44322
5041         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5042         target type for ADDR_EXPR; require no changes to qualifiers except
5043         for function types.
5044         * c-tree.h (c_build_type_variant): Remove.
5045
5046 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5047
5048         * genautomata.c (get_excl_set): Do work per element, not per char.
5049         (check_presence_pattern_sets): Similar.
5050         (check_absence_pattern_sets): Similar.
5051
5052 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5053
5054         * genautomata.c (curr_state_pass_num): Delete.
5055         (min_issue_delay_pass_states): Delete.
5056         (min_issue_delay): Delete.
5057         (initiate_min_issue_delay_pass_states): Delete.
5058         (output_min_issue_delay_table): Compute min_issue_delay_vect
5059         using a breadth-first search variant.
5060         (output_tables): Don't call initiate_min_issue_delay_pass_states.
5061
5062 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5063
5064         PR boostrap/44421
5065         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5066         (df_byte_lr_bb_local_compute): Likewise.
5067
5068 2010-06-03  Jason Merrill  <jason@redhat.com>
5069
5070         Implement noexcept operator (5.3.7)
5071         * c-common.c (c_common_reswords): Add noexcept.
5072         * c-common.h (enum rid): Add RID_NOEXCEPT.
5073
5074 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
5075
5076         * config/darwin-driver.c (darwin_default_min_version): Use
5077         GCC-specific formats in diagnostics.
5078         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5079         diagnostics.
5080         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5081         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5082         eval_spec_function, handle_braces, process_brace_body, main,
5083         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5084         getenv_spec_function, compare_version_strings,
5085         version_compare_spec_function): Use GCC-specific formats in
5086         diagnostics.
5087
5088 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5089
5090         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5091         that operand 0 and operand 1 are equal.
5092         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5093         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5094         and operand 1 are equal.
5095         <default>: Ditto.  Remove ??? comment.
5096         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5097         and operand 1 are equal.
5098         <default>: Ditto.  Remove ??? comment.
5099         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5100         are equal.
5101         (*add<mode>_4) <default>: Ditto.
5102         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5103
5104 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
5105
5106         * config/i386/i386-protos.h (ix86_print_operand): Declare.
5107         * config/i386/i386.c (ix86_print_operand): Make non-static.
5108         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5109         * output.h (output_operand): Declare.
5110         * final.c (output_operand): Make non-static.
5111
5112 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
5113
5114         PR rtl-optimization/44013
5115         * sched-deps.c (add_dependence_list_and_free): Don't free lists
5116         when processing debug insns.
5117
5118         PR debug/41371
5119         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5120         recursing.  Check that recursion is bounded.  Rename inner var
5121         to avoid hiding incoming argument.
5122
5123 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5124
5125         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5126         operands[2] == 255.
5127         (*addqi_3): Ditto.
5128         (*addqi_4): Ditto.
5129         (*addqi_5): Ditto.
5130         (*addqi_ext_1_rex64): Ditto.
5131         (*addqi_ext_1): Ditto.
5132
5133         (*addqi_4): Check for incdec_operand in QImode.
5134
5135         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5136         using SWI mode iterator.
5137         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5138         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5139         mode iterator.
5140         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5141         using SWI mode iterator.
5142
5143 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5144
5145         PR c/25880
5146         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5147         * c-format.c (gcc_diag_flag_specs): Add hash.
5148         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5149         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5150         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5151         pp_c_cv_qualifiers. Handle qualifiers spelling here.
5152         (pp_c_type_qualifier_list): Call the function above.
5153         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5154         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5155         (WARN_FOR_QUALIFIERS): New macro.
5156         (convert_for_assignment): Use it.
5157
5158 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
5159
5160         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5161
5162 2010-06-04  Jan Hubicka  <jh@suse.cz>
5163
5164         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5165         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5166         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5167         DF_BYTE_LR_OUT): Update for embedded bitmaps.
5168         * fwprop.c (single_def_use_enter_block): Likewise.
5169         * ddg.c (create_ddg_dep_from_intra_loop_link,
5170         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5171         * loop-iv.c (latch_dominating_def): Likewise.
5172         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5173         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5174         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5175         df_rd_transfer_function, df_rd_top_dump,
5176         df_rd_bottom_dump): Update.
5177         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5178         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5179         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5180         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5181         df_lr_verify_solution_start, df_lr_verify_solution_end,
5182         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5183         df_live_free_bb_info, df_live_alloc, df_live_reset,
5184         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5185         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5186         df_live_verify_solution_start, df_live_verify_solution_end,
5187         df_live_verify_transfer_functions, df_chain_create_bb,
5188         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5189         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5190         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5191         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5192         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5193         df_byte_lr_transfer_function, df_byte_lr_top_dump,
5194         df_byte_lr_bottom_dump, df_create_unused_note,
5195         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5196         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5197         df_md_transfer_function, df_md_init, df_md_confluence_0,
5198         df_md_confluence_n,
5199         df_md_top_dump, df_md_bottom_dump): Update.
5200         (struct df_lr_problem_data): Embedd bitmap headers.
5201
5202 2010-06-04  Jan Hubicka  <jh@suse.cz>
5203
5204         * dce.c (dce_process_block): Do not re-scan already marked
5205         instructions.
5206
5207 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
5208
5209         PR rtl-optimization/39871
5210         PR rtl-optimization/40615
5211         PR rtl-optimization/42500
5212         PR rtl-optimization/42502
5213         * ira.c (init_reg_equiv_memory_loc: New function.
5214         (ira): Call it twice.
5215         * reload.h (calculate_elim_costs_all_insns): Declare.
5216         * ira-costs.c: Include "reload.h".
5217         (regno_equiv_gains): New static variable.
5218         (init_costs): Allocate it.
5219         (finish_costs): Free it.
5220         (ira_costs): Call calculate_elim_costs_all_insns.
5221         (find_costs_and_classes): Take estimated elimination costs
5222         into account.
5223         (ira_adjust_equiv_reg_cost): New function.
5224         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5225         * reload1.c (init_eliminable_invariants, free_reg_equiv,
5226         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5227         (elim_bb): New static variable.
5228         (reload): Move code out of here into init_eliminable_invariants and
5229         free_reg_equiv.  Call them.
5230         (calculate_elim_costs_all_insns): New function.
5231         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
5232         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
5233         but call note_reg_elim_costly if we turned a valid memory address
5234         into an invalid one.
5235         * Makefile.in (ira-costs.o): Depend on reload.h.
5236
5237 2010-06-04  Julian Brown  <julian@codesourcery.com>
5238
5239         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5240         for pool ranges.
5241
5242 2010-06-04  Richard Guenther  <rguenther@suse.de>
5243
5244         PR lto/41584
5245         * cgraph.h (struct varpool_node): Add lto_file_data field.
5246         * lto-cgraph.c (input_varpool_node): Initialize it.
5247
5248 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5249
5250         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5251         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5252         predicate in "type" attribute calculation.
5253         (*addsi_1_zext): Ditto.
5254         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5255         (*addsi_2_zext): Ditto.
5256         (*add<mode>_3): Ditto.
5257         (*addsi_3_zext): Ditto.
5258         (*add<mode>_5): Ditto.
5259
5260 2010-06-03  Jan Hubicka  <jh@suse.cz>
5261
5262         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5263         of bitmap_bit_p.
5264         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5265
5266 2010-06-03  Jan Hubicka  <jh@suse.cz>
5267
5268         * df-problems.c (df_create_unused_note, df_note_bb_compute):
5269         micro-optimize the checks when to add new note.
5270
5271 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
5272
5273         * final.c (output_asm_insn): Call
5274         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
5275         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
5276         (output_address): Call targetm.asm_out.print_operand_address.
5277         Update comments.
5278         * target.h (struct gcc_target): Add print_operand,
5279         print_operand_address, and print_operand_punct_valid_p fields.
5280         * targhooks.h (default_print_operand): Declare.
5281         (default_print_operand_address): Declare.
5282         (default_print_operand_punct_valid_p): Declare.
5283         * targhooks.c (default_print_operand): Define.
5284         (default_print_operand_address): Define.
5285         (default_print_operand_punct_valid_p): Define.
5286         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5287         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5288         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5289         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5290         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5291         * vmsdbgout.c (addr_const_to_string): Update comment.
5292         * config/i386/i386.c (print_operand): Rename to...
5293         (ix86_print_operand): ...this.  Make static.
5294         (print_operand_address): Rename to...
5295         (ix86_print_operand_address): ...this.  Make static.  Call
5296         ix86_print_operand instead of PRINT_OPERAND.
5297         (ix86_print_operand_punct_valid_p): New function.
5298         (TARGET_PRINT_OPERAND): Define.
5299         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5300         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5301         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5302         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5303         (PRINT_OPERAND): Delete.
5304         (PRINT_OPERAND_ADDRESS): Delete.
5305         * config/i386/i386-protos.h (print_operand): Delete prototype.
5306         (print_operand_address): Delete prototype.
5307
5308 2010-06-03  Richard Guenther  <rguenther@suse.de>
5309
5310         PR tree-optimization/44403
5311         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5312         Preserve pointer qualifiers.
5313         (vect_create_data_ref_ptr): Likewise.
5314
5315 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5316
5317         PR c++/44294
5318         * defaults.h (MAX_FIXED_MODE_SIZE): New.
5319
5320         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5321
5322 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
5323
5324         PR debug/44375
5325         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5326         return false if merging the bbs would lead to goto_locus
5327         location being lost from the IL.
5328
5329 2010-06-03  Jan Hubicka  <jh@suse.cz>
5330             Jakub Jelinek  <jakub@redhat.com>
5331
5332         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
5333         set->regs[i] is NULL or has just one entry.
5334
5335 2010-06-03  Jan Hubicka  <jh@suse.cz>
5336
5337         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
5338         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
5339
5340 2010-06-03  Paul Brook  <paul@codesourcery.com>
5341
5342         * config/arm/arm.c (FL_TUNE): Define.
5343         (arm_default_cpu, arm_cpu_select): Remove.
5344         (all_cores): Populate core field.
5345         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
5346         (arm_find_cpu): New function.
5347         (arm_handle_option): Lookup cpu/architecture names.
5348         (arm_override_options): Cleanup mcpu/march/mtune handling.
5349         (arm_file_start): Ditto.
5350
5351 2010-06-03  Alan Modra  <amodra@gmail.com>
5352
5353         PR target/44169
5354         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
5355         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
5356         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
5357         (rs6000_emit_load_toc_table): Likewise.
5358
5359 2010-06-02  Jan Hubicka  <jh@suse.cz>
5360
5361         * passes.c (init_optimization_passes): Put ipa reference
5362         after ipa pure-const.
5363
5364 2010-06-02  Jan Hubicka  <jh@suse.cz>
5365
5366         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
5367         calls_read_all and calls_write_all.
5368         (get_reference_optimization_summary): Fix formatting.
5369         (is_proper_for_analysis): Check that decl is not readonly.
5370         (propagate_bits): Check CONST/PURE/noreturn flags.
5371         (ipa_init): Move all_module_statics to optimization_summary_obstack.
5372         (analyze_function): Ignore indirect edges.
5373         (copy_global_bitmap): For all module statics, do nothing.
5374         (generate_summary): Do not print calls_read_all/calls_write_all.
5375         (read_write_all_from_decl): Take node as argument; check
5376         cgraph_node_cannot_return.
5377         (propagate): Reorganize read_all/write_all computation;
5378         check indirect edges; check ecf flags; use all_module_statics
5379         in the results; do not free all_module_statics.
5380         (stream_out_bitmap): Handle all_module_statics.
5381         (ipa_reference_write_optimization_summary): Likewise; use
5382         varpool/cgraph encoders to get boundaries.
5383         (ipa_reference_read_optimization_summary): Read in all_module_statics;
5384         use it when possible.
5385
5386 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5387
5388         PR target/44218
5389         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
5390         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
5391
5392         * doc/extend.texi (powerpc builtins): Document vec_recip,
5393         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
5394
5395         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
5396         (rs6000_emit_swrsqrt): Ditto.
5397         (rs6000_emit_swdivsf): Delete.
5398         (rs6000_emit_swdivdf): Ditto.
5399         (rs6000_emit_swrsqrtsf): Ditto.
5400
5401         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
5402         describe the reciprocal estimate support for each type.
5403         (recip_options): Map -mrecip=<opt> into option bits.
5404         (gen_2arg_fn_t): New typedef for binary rtx gen function.
5405         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
5406         reciprocal estimate instructions.
5407         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
5408         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
5409         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
5410         cost information if -mdebug=cost or -mdebug=reg.
5411         (rs6000_override_options): Set -mrecip-precision for power6, and
5412         power7 machines.  If -mvsx or -mdfp, enable various options that
5413         came in previous instruction set ISAs, unless the option was
5414         explicitly disabled by the command line option.  Parse
5415         -mrecip=<opt> options.
5416         (rs6000_builtin_vectorized_function): Add support for vectorizing
5417         the reciprocal estimate builtins and expansions.
5418         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
5419         (bdesc_2arg): Add reciprocal estimate builtins.
5420         (bdesc_1arg): Add reciprocal square root estimate builtins.
5421         (rs6000_expand_builtin): Rewrite to use a switch statement,
5422         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
5423         (rs6000_init_builtins): Create declarations for reciprocal
5424         estimate builtins.
5425         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
5426         sized, prefer traditional floating point registers, if integer
5427         vector types, prefer altivec registers.  Don't actually look at
5428         the memory address any more.
5429         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
5430         builtins.
5431         (rs6000_load_constant_and_splat): New helper function to load up
5432         the constant for reciprocal estimate instructions.
5433         (rs6000_emit_madd): New helper function for generating
5434         multiply/add type instructions, based on the current switches.
5435         (rs6000_emit_msub): Ditto.
5436         (rs6000_emit_mnsub): Ditto.
5437         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
5438         replace a divide with a reciprocal estimate and fixup, adding
5439         support for machines with high precision and vectors.
5440         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
5441         low precision machines.
5442         (rs6000_emit_swdiv): New common function to be called to replace a
5443         division with reciprocal estimate and fixup.
5444         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
5445         for double and vector types.  Add support for high precision machines.
5446
5447         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
5448         the reciprocal estimate instructions can be generated.
5449         (TARGET_FRE): Ditto.
5450         (TARGET_FRSQRTES): Ditto.
5451         (TARGET_FRSQRTE): Ditto.
5452         (RS6000_RECIP_*): New macros for reciprocal estimate support.
5453
5454         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
5455         square root estimate on vectors.
5456         (re<mode>2): New insn for reciprocal division estimate on vectors.
5457
5458         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
5459         New builtin.
5460         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
5461         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
5462         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
5463         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
5464         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
5465         (RS6000_BUILTIN_RSQRT): Ditto.
5466         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
5467         floating point builtin.
5468
5469         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5470         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
5471         __RECIP_PRECISION__ based on the command line switches.
5472         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
5473
5474         * config/rs6000/rs6000.opt (-mrecip): Document add support for
5475         replacing division instructions with reciprocal estimate and fixup.
5476         (-mrecip=<opt>): New option.
5477         (-mrecip-precision): Ditto.
5478
5479         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
5480         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
5481         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
5482         precision scalar.
5483
5484         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
5485         (UNSPEC_VREFP): Ditto.
5486         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
5487         conterparts with regard to support of -mno-fused-madd and -ffast-math.
5488         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
5489         reciprocal estimate instructions to be generated.
5490         (altivec_vrefp): Ditto.
5491
5492         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
5493         estimate support.
5494         (rreg): New mode attribute for reciprocal estimate support.
5495         (recip<mode>3): New insn for division using reciprocal estimate
5496         and fixup builtins.
5497         (divide define_split): New define_split to convert floating point
5498         division to use reciprocal estimate if the user used the
5499         appropriate options and the split is run when we can add new
5500         pseudo registers for the fixup.
5501         (rsqrt<mode>2): New insn for reciprocal square root support.
5502         (recipsf3): Move into recip<mode>3.
5503         (recipdf3): Ditto.
5504         (fres): Use TARGET_FRES.
5505         (rsqrtsf2): Move into rsqrt<mode>2.
5506         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
5507         (copysignsf3): Add support for VSX.
5508         (fred): Use TARGET_FRE.
5509         (fred_fpr): Ditto.
5510         (rsqrtdf_internal1): New function for frsqrte instruciton.
5511
5512         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
5513         (vec_rsqrt): Ditto.
5514
5515 2010-06-03  Richard Guenther  <rguenther@suse.de>
5516
5517         PR middle-end/44291
5518         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
5519         (set_user_assembler_libfunc): Likewise.
5520
5521 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5522
5523         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
5524         defaults.h.
5525         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
5526         to defaults.h
5527         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
5528         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
5529         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
5530         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
5531         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
5532         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
5533         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
5534         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
5535         * defaults.h: Updated for above mentioned changes.
5536
5537 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
5538
5539         * c-common.c: Remove header include of tm_p.h.
5540         * Makefile.in (c-common.o): Remove TM_P_H dependency.
5541
5542 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
5543
5544         * tree.h (struct tree_decl_map): New type.
5545         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
5546         (tree_decl_map_hash): New prototype.
5547         (debug_expr_for_decl, value_expr_for_decl): Change into
5548         tree_decl_map hashtab from tree_map.
5549         (init_ttree): Adjust initialization.
5550         (tree_decl_map_hash): New function.
5551         (decl_debug_expr_lookup, decl_debug_expr_insert,
5552         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
5553
5554 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5555
5556         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
5557         linker emulations.
5558         * configure: Regenerate.
5559         * config.in: Regenerate.
5560
5561         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
5562         (X86_64_EMULATION): Define.
5563         (TARGET_LD_EMULATION): Use them.
5564
5565         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
5566         (SPARC64_EMULATION): Define.
5567         (LINK_ARCH_SPEC): Use them.
5568
5569 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5570
5571         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
5572         smallest_mode_for_size for computing the precision types of new
5573         graphite IVs.  Do not call lang_hooks.types.type_for_size.
5574
5575 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5576
5577         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
5578         information.
5579         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
5580
5581 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5582
5583         PR middle-end/44363
5584         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
5585         return false instead.
5586
5587 2010-06-02  Jan Hubicka  <jh@suse.cz>
5588
5589         PR middle-end/44295
5590         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
5591         create new cgraph node to check callee.
5592
5593 2010-06-02  Richard Guenther  <rguenther@suse.de>
5594
5595         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
5596
5597 2010-06-02  Richard Guenther  <rguenther@suse.de>
5598
5599         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
5600         (lto_wrapper_cleanup): ... this.  Do not exit.
5601         (fatal): Adjust.  Exit here.
5602         (fatal_perror): Likewise.
5603         (fatal_signal): New function.
5604         (main): Set up signal handlers to cleanup temporary files.
5605         * Makefile.in (lto-wrapper.o): Adjust dependencies.
5606
5607 2010-06-02  Richard Guenther  <rguenther@suse.de>
5608
5609         PR tree-optimization/44377
5610         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
5611
5612 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5613
5614         * config/s390/2097.md (z10_fhex): Remove insn reservation.
5615         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5616         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
5617         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
5618         instruction.
5619         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
5620
5621 2010-06-02  Jan Hubicka  <jh@suse.cz>
5622
5623         * bitmap.c (bitmap_descriptor): Add search_iter.
5624         (bitmap_find_bit): Increment it.
5625         (print_statistics): Print it.
5626
5627 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
5628
5629         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
5630         instead of gimple_build_call_vec.  Delete unnecessary local variable.
5631
5632 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5633
5634         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
5635         change from yesterday.
5636
5637 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5638
5639         * c-ada-spec.c: Clean up redundant includes.
5640
5641 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
5642
5643         * gimplify.c: Do not include except.h and optabs.h.
5644         (gimplify_body): Do not initialize RTL profiling.
5645         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
5646         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
5647         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
5648         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
5649         langhooks.h.
5650
5651         * tree-pretty-print.h: Include pretty-print.h.
5652         * gimple-pretty-print.h: Include pretty-print.h.
5653
5654         * tree-pretty-print.c: Do not include diagnostic.h.
5655         * tree-vrp.c: Likewise.
5656         * tree-tailcall.c: Likewise
5657         * tree-scalar-evolution.c: Likewise
5658         * tree-ssa-dse.c: Likewise
5659         * tree-chrec.c: Likewise
5660         * tree-ssa-sccvn.c: Likewise
5661         * tree-ssa-copyrename.c: Likewise
5662         * tree-nomudflap.c: Likewise
5663         * tree-call-cdce.c: Likewise
5664         * tree-stdarg.c: Likewise
5665         * tree-ssa-math-opts.c: Likewise
5666         * tree-nrv.c: Likewise
5667         * tree-ssa-sink.c: Likewise
5668         * tree-browser.c: Likewise
5669         * tree-ssa-loop-ivcanon.c: Likewise
5670         * tree-ssa-loop.c: Likewise
5671         * tree-parloops.c: Likewise
5672         * tree-ssa-address.c: Likewise
5673         * tree-ssa-ifcombine.c: Likewise
5674         * tree-if-conv.c: Likewise
5675         * tree-data-ref.c: Likewise
5676         * tree-affine.c: Likewise
5677         * tree-ssa-phiopt.c: Likewise
5678         * tree-ssa-coalesce.c: Likewise
5679         * tree-ssa-pre.c: Likewise
5680         * tree-ssa-live.c: Likewise
5681         * tree-predcom.c: Likewise
5682         * tree-ssa-forwprop.c: Likewise
5683         * tree-ssa-dce.c: Likewise
5684         * tree-ssa-ter.c: Likewise
5685         * tree-ssa-loop-prefetch.c: Likewise
5686         * tree-optimize.c: Likewise
5687         * tree-ssa-phiprop.c: Likewise
5688         * tree-object-size.c: Likewise
5689         * tree-outof-ssa.c: Likewise
5690         * tree-ssa-structalias.c: Likewise
5691         * tree-switch-conversion.c: Likewise
5692         * tree-ssa-reassoc.c: Likewise
5693         * tree-ssa-operands.c: Likewise
5694         * tree-vectorizer.c: Likewise
5695         * tree-vect-data-refs.c: Likewise
5696         * tree-vect-generic.c: Likewise
5697         * tree-vect-stmts.c: Likewise
5698         * tree-vect-patterns.c: Likewise
5699         * tree-vect-slp.c: Likewise
5700         * tree-vect-loop.c: Likewise
5701         * tree-ssa-loop-ivopts.c: Likewise
5702         * tree-ssa-loop-im.c: Likewise
5703         * tree-ssa-loop-niter.c: Likewise
5704         * tree-ssa-loop-unswitch.c: Likewise
5705         * tree-ssa-loop-manip.c: Likewise
5706         * tree-ssa-loop-ch.c: Likewise
5707         * tree-dump.c: Likewise
5708         * tree-complex.c: Likewise
5709
5710         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
5711         * tree-ssa-uninit.c: Likewise
5712         * tree-ssa-threadupdate.c: Likewise
5713         * tree-ssa-uncprop.c: Likewise
5714         * tree-ssa-ccp.c: Likewise
5715         * tree-ssa-dom.c: Likewise
5716         * tree-ssa-propagate.c: Likewise
5717         * tree-ssa-alias.c: Likewise
5718         * tree-dfa.c: Likewise
5719         * tree-cfgcleanup.c: Likewise
5720         * tree-sra.c: Likewise
5721         * tree-ssa-copy.c: Likewise
5722         * tree-ssa.c: Likewise
5723         * tree-profile.c: Likewise
5724         * tree-cfg.c: Likewise
5725         * tree-ssa-threadedge.c: Likewise
5726         * tree-vect-loop-manip.c: Likewise
5727
5728         * tree-inline.c: Do not include diagnostic.h and expr.h.
5729         Include rtl.h.
5730         (copy_decl_for_dup_finish): Do not use NULL_RTX.
5731
5732         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
5733         * tree-loop-distribution.c: Likewise.
5734
5735 2010-06-01  Jan Hubicka  <jh@suse.cz>
5736
5737         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
5738
5739 2010-06-01  Jan Hubicka  <jh@suse.cz>
5740
5741         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
5742         remove return value.
5743         (split_bbs_on_noreturn_calls) .... here.
5744         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
5745         * tree-flow.h (fixup_noreturn_call): New.
5746
5747 2010-06-01  Jan Hubicka  <jh@suse.cz>
5748
5749         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
5750
5751 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
5752
5753         * tree.h (build_nt_call_list): Delete.
5754         * tree.c (build_nt_call_list): Delete.
5755
5756 2010-06-01  Jan Hubicka  <jh@suse.cz>
5757
5758         * fwprop.c: Make emit-rtl.h include last.
5759         * rtlanal.c: Include emit-rtl.h.
5760         * genautomata.c: Output emit-rtl include into insn-automata.c
5761         * df-scan.c: Include emit-rtl.h.
5762         * haifa-sched.c: Indlude emit-rtl.h.
5763         * mode-switching.c: Indlude emit-rtl.h.
5764         * graph.c: Indlude emit-rtl.h.
5765         * sel-sched.c: Include emit-rtl.h.
5766         * sel-sched-ir.c: Include emit-rtl.h.
5767         * ira-build.c: Include emit-rtl.h.
5768         * emit-rtl.c: (first_insn, last_insn): Remove defines.
5769         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
5770         Move to emit-rtl.h.
5771         (set_new_first_and_last_insn, get_last_insn_anywhere,
5772         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
5773         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
5774         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
5775         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
5776         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
5777         Use accessor functions.
5778         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5779          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5780         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5781         mem_expr_equal_p): Move here from rtl.h.
5782         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
5783         Move here from emit-rtl.c; make inline.
5784         * cfglayout.h: Include emit-rtl.h.
5785         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5786          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5787         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5788         mem_expr_equal_p, get_insns, set_first-insn,
5789         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
5790         * reg-stack.c: Include emit-rtl.h.
5791         * dce.c: Likewise.
5792
5793 2010-06-01  Jan Hubicka  <jh@suse.cz>
5794
5795         * cgraph.h (tree_function_versioning): Update prototype.
5796         (cgraph_function_versioning): Update prototype.
5797         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
5798         bitmap.
5799         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
5800         (cgraph_materialize_clone, save_inline_function_body): Update use of
5801         tree_function_versioning.
5802         * tree-inline.c (copy_bb): Look for previous copied block to link
5803         after; fix debug output.
5804         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
5805         (copy_body): Likewise.
5806         (expand_call_inline): Update use of copy_body.
5807         (tree_function_versioning): Update use of copy body; accept
5808         blocks_to_copy and new_entry.
5809
5810 2010-06-01  Jan Hubicka  <jh@suse.cz>
5811
5812         * gegenrtl.c: Remove unnecesary prototypes.
5813         (gendecl): Remove.
5814         (gendef): Produce static inline.
5815         (gencode): Remove.
5816         (main): Do not decode parameters; generate header only.
5817         * Makefile.in (genrtl.c): Remove.
5818
5819 2010-06-01  Jan Hubicka  <jh@suse.cz>
5820
5821         * tree-switch-conversion.c (build_one_array): Make it readonly.
5822
5823 2010-06-01  Richard Guenther  <rguenther@suse.de>
5824
5825         * optabs.c (init_optabs): Guard all accesses to reinit.
5826         * ipa-pure-const.c (propagate): Fix another typo.
5827         * opts.c (common_handle_option): Split assignment to bool.
5828         * c-opts.c (c_common_handle_option): Likewise.
5829
5830 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
5831             Matthew Gingell  <gingell@adacore.com>
5832
5833         * doc/invoke.texi: Mention -fdump-ada-spec.
5834         * tree-dump.c (dump_files): Add ada-spec.
5835         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
5836         * tree-pass.h (tree_dump_index): Add TDI_ada.
5837         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
5838         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
5839         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
5840         * c-decl.c: Include c-ada-spec.h.
5841         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
5842         functions.
5843         (c_write_global_declarations): Add handling of -fdump-ada-spec.
5844         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
5845         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
5846         * c-ada-spec.h, c-ada-spec.c: New files.
5847
5848 2010-06-01  Richard Guenther  <rguenther@suse.de>
5849
5850         PR lto/43853
5851         * ipa-pure-const.c (get_function_state): Hand back varying state
5852         if we do not have one.
5853         (has_function_state): New function.
5854         (duplicate_node_data): Adjust.
5855         (remove_node_data): Likewise.
5856         (pure_const_write_summary): Likewise.
5857         (propagate): Likewise.  Fix typo.
5858
5859 2010-06-01  Jan Hubicka  <jh@suse.cz>
5860
5861         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
5862         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
5863         (execute_all_ipa_transforms): Do not play with the states.
5864
5865 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
5866
5867         * config/arm/t-linux-androideabi: New.
5868         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
5869
5870 2010-06-01  Jan Hubicka  <jh@suse.cz>
5871
5872         * tree-inline.c (estimate_num_insns): For stdarg functions look
5873         into call statement to count cost of argument passing.
5874
5875 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
5876
5877         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
5878         argument for fprintf.
5879         (ix86_output_addr_diff_elt): Likewise.
5880         (x86_function_profiler): Likewise.
5881         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
5882         (LPREFIX): Likewise.
5883         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5884
5885 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
5886
5887         PR target/44338
5888         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
5889         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
5890         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
5891         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
5892         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
5893         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
5894         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
5895         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
5896         TARGET_FUSED_MADD.
5897
5898 2010-05-31  Jan Hubicka  <jh@suse.cz>
5899
5900         * tree.h (tree_range_check_failed): Declare noreturn.
5901
5902 2010-05-31  Jan Hubicka  <jh@suse.cz>
5903
5904         * gimple.c (gimple_call_builtin_p): New function.
5905         * gimple.h (gimple_call_builtin_p): Declare.
5906         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
5907         to exit.
5908         (execute_warn_function_return): BUILT_IN_RETURN is return.
5909         (split_critical_edges): Return edges are not critical.
5910         (is_ctrl_altering_stmt): Builtin_in_return is altering.
5911         (gimple_verify_flow_info): Handle built_in_return.
5912         (execute_warn_function_return): Handle built_in_return.
5913         * ipa-pure-const.c (check_call): Ignore builtin_return.
5914
5915 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
5916
5917         PR middle-end/44337
5918         * expr.c (expand_assignment): Don't store anything for out-of-bounds
5919         array accesses with non-MEM.
5920
5921         PR tree-optimization/44182
5922         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
5923         newly needs to end a bb is followed by debug stmts, instead return
5924         true from the function at the end.
5925         (maybe_move_debug_stmts_to_successors): New function.
5926         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
5927
5928 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
5929
5930         PR target/44161
5931         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
5932
5933 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
5934
5935         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
5936         for nested functions in non-optimized compilation.
5937
5938 2010-05-31  Richard Guenther  <rguenther@suse.de>
5939
5940         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
5941
5942 2010-05-30  Jan Hubicka  <jh@suse.cz>
5943
5944         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
5945
5946 2010-05-30  Richard Guenther  <rguenther@suse.de>
5947
5948         PR lto/42975
5949         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
5950         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
5951         no longer needed.
5952
5953 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
5954
5955         * config/darwin.c (output_objc_section_asm_op): Add comment.
5956         (name_needs_quotes): Add '_' to list of valid comment chars.
5957         (machopic_output_function_base_name): Remove unneeded quotes.
5958         (darwin_encode_section_info): Adjust asm whitespace.
5959         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
5960         (ASM_OUTPUT_LOCAL): Ditto.
5961         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
5962         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
5963         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
5964
5965 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5966
5967         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
5968         RS6000_OUTPUT_BASENAME unconditionally.
5969         (rs6000_output_function_epilogue): Likewise.
5970
5971 2010-05-30  Jan Hubicka  <jh@suse.cz>
5972
5973         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
5974         nodes.
5975
5976 2010-05-30  Richard Guenther  <rguenther@suse.de>
5977
5978         * tree-cfg.c (verify_gimple_assign_single): Implement
5979         verification for COND_EXPR rhs.
5980
5981 2010-05-30  Jan Hubicka  <jh@suse.cz>
5982
5983         * cgraph.h (cgraph_dump_file): Declare.
5984         * cgraphunit.c (cgraph_dump_file): Export.
5985         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
5986
5987 2010-05-30  Jan Hubicka  <jh@suse.cz>
5988
5989         * dwarf2out.c (reference_to_unused,
5990         premark_types_used_by_global_vars_helper): Avoid creation of new
5991         varpool nodes.
5992
5993 2010-05-30  Jan Hubicka  <jh@suse.cz>
5994
5995         * cgraph.h (cgraph_node_cannot_return,
5996         cgraph_edge_cannot_lead_to_return): New functions.
5997         * cgraph.c (cgraph_node_cannot_return,
5998         cgraph_edge_cannot_lead_to_return): Use them.
5999         * ipa-pure-const.c (pure_const_names): New static var.
6000         (check_call): Handle calls not leading to return.
6001         (pure_const_read_summary): Dump info read.
6002         (propagate): Dump info about propagation process; ignore side effects
6003         of functions not leading to exit; fix handling of pure functions.
6004
6005 2010-05-30  Jan Hubicka  <jh@suse.cz>
6006
6007         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6008         for tail call epilogues.
6009
6010 2010-05-30  Jan Hubicka  <jh@suse.cz>
6011
6012         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6013         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6014         dump files.
6015
6016 2010-05-29  Jan Hubicka  <jh@suse.cz>
6017
6018         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6019         node; remove references in node we no longer keep in cgrpah but need
6020         body of.
6021
6022 2010-05-29  Jan Hubicka  <jh@suse.cz>
6023
6024         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6025
6026 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6027
6028         PR target/44165
6029         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6030
6031 2010-05-29  Jan Hubicka  <jh@suse.cz>
6032
6033         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6034         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6035         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6036         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6037         debug_names_replaced_by, debug_update_ssa): Likewise.
6038         * sbitmap.c (debug_sbitmap): Likewise.
6039         * genrecog.c (debug_decision, debug_decision_list): Likewise.
6040         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6041         debug_tree_chain): Likewise.
6042         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6043         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6044         * optabs.c  (debug_optab_libfuncs): Likewise.
6045         (verify_loop_closed_ssa): Likewise.
6046         * value-prof.c (verify_histograms): Likewise.
6047         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6048         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6049         * cfghooks.c (verify_flow_info): Likewise.
6050         * fold-const.c (debug_fold_checksum): Likewise.
6051         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6052         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6053         Likewise.
6054         * omega.c (debug_omega_problem): Likewise.
6055         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6056         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6057         * dominance.c (verify_dominators, debug_dominance_info,
6058         debug_dominance_tree): Likewise.
6059         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6060         * df_regno_debug, df_ref_debug,
6061         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6062         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6063         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6064         * sel-sched.c (debug_state): Likewise.
6065         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6066         Likewise.
6067         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6068         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6069         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6070         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6071         Likewise.
6072         * c-pretty-print.c (debug_c_tree): Likewise.
6073         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6074         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6075         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6076         * ebitmap.c (debug_ebitmap): Likewise.
6077         * function.c (debug_find_var_in_block_tree): Likewise.
6078         * print-rtl.c (debug_rtx): Likewise.
6079         (debug_rtx_count): Likewise.
6080         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6081         * stor-layout.c (debug_rli): Likewise.
6082         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6083         * tree-data-ref.c (debug_data_references,
6084         debug_data_dependence_relations, debug_data_reference,
6085         debug_data_dependence_relation, debug_rdg_vertex,
6086         debug_rdg_component, debug_rdg): Likewise.
6087         * tree-affine.c (debug_aff): Likewise.
6088         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6089         Likewise.
6090         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6091         * emit-rtl.c (verify_rtl_sharing): Likewise.
6092         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6093         debug_value_expressions): Likewise.
6094         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6095         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6096         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6097         * cfglayout.c (verify_insn_chain): Likewise.
6098         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6099         debug_clast_stmt, debug_generated_program): Likewise.
6100         * ggc-page.c (debug_print_page_list): Likewise.
6101         * tree-ssa-ter.c (debug_ter): Likewise.
6102         * graphite-dependences.c (debug_pddr): Likewise.
6103         * sched-deps.c (debug_ds): Likewise.
6104         * tree-ssa.c (verify_ssa): Likewise.
6105         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6106         debug_scattering_functions, debug_iteration_domains, debug_pdr,
6107         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6108         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6109         * tree-inline.c (debug_find_tree): Likewise.
6110         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6111         debug_ppl_powerset_matrix): Likewise.
6112         * var-tracking.c (debug_dv): Likewise.
6113         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6114         * cfgloop.c (verify_loop_structure): Likewise.
6115         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6116         * c-common.c (verify_sequence_points): Likewise.
6117         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6118         debug_candidates, debug_rgn_dependencies): Likewise.
6119         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6120         * debug_constraint_graph, debug_solution_for_var,
6121         debug_sa_points_to_info): Likewise.
6122         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6123         Likewie.
6124         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6125         debug_loops, debug_loop, debug_loop_num): Likewise.
6126         * passes.c (debug_pass): Likewise.
6127         (dump_properties): Likewise; add cfglayout property.
6128         (debug_properties): Likewise.
6129         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6130         * varpool.c (debug_varpool): Likewise.
6131         * regcprop.c (debug_value_data): Likewise.
6132         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6133         debug_immediate_uses_for): Likewise.
6134
6135 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6136
6137         PR bootstrap/44315
6138         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6139         Filter out insn-flags.h.
6140
6141 2010-05-29  Jan Hubicka  <jh@suse.cz>
6142
6143         * cgraph.h (struct varpool_node_set_def,
6144         struct cgraph_node_set_def): Remove unused AUX pointer.
6145         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6146         VEC_empty macro.
6147
6148 2010-05-29  Jan Hubicka  <jh@suse.cz>
6149
6150         PR middle-end/44324
6151         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6152
6153 2010-05-29  Richard Guenther  <rguenther@suse.de>
6154
6155         * lto-streamer.c (cached_bp): New global variable.
6156         (bitpack_create): Return the cached bitpack, if available.
6157         (bitpack_delete): Clear and cache the bitpack, if appropriate.
6158         (bp_pack_value): Remove redundant asserts.
6159
6160 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6161
6162         PR middle-end/44306
6163         * tree-if-conv.c (is_true_predicate): New.
6164         (is_predicated): Use is_true_predicate.
6165         (add_to_predicate_list): Same.  Do not use unshare_expr.
6166         (add_to_dst_predicate_list): Same.
6167
6168 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6169
6170         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6171         field on edges.
6172         (predicate_bbs): Same.
6173         (clean_predicate_lists): Same.
6174         (find_phi_replacement_condition): Do not AND the predicate from
6175         edge->aux.
6176
6177 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6178
6179         PR bootstrap/44315
6180         * Makefile.in (build/gencondmd.o): Add a missing `\'.
6181
6182 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6183
6184         PR target/44261
6185         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6186         (negdf2): Adjust expander pattern and use negdf2_slow.
6187         (negsf2): Likewise.
6188
6189 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
6190
6191         * basic-block.h (struct control_flow_graph): Move last_label_uid field
6192         up.
6193         * df.h (struct df_base_ref): Move regno field up.
6194         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6195         * expr.h (struct separate_ops): Move location field up.
6196         * optabs.h (struct optab_d): Move libcall_basename field down.
6197         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6198         * config/i386/i386.h (struct machine_function): Convert call_abi field
6199         into a bitfield.  Move cfa field to the end of the structure.
6200
6201 2010-05-29  Jan Hubicka  <jh@suse.cz>
6202
6203         * varpool.c (varpool_get_node): Fix lookup.
6204
6205 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6206
6207         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
6208         RTL specific prototypes with #ifdef RTX_CODE.
6209         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6210         * config/spu/t-spu-elf: Fix dependencies.
6211
6212         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6213
6214 2010-05-29  Mike Stump  <mikestump@comcast.net>
6215
6216         PR bootstrap/44315
6217         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6218         TM_H when building to avoid dependency loops.
6219
6220 2010-05-29  Jan Hubicka  <jh@suse.cz>
6221
6222         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6223         refs and body; not the whole node for masters of materialized clones.
6224
6225 2010-05-29  Mike Stump  <mikestump@comcast.net>
6226
6227         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6228
6229 2010-05-29  Jan Hubicka  <jh@suse.cz>
6230
6231         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6232         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6233         use of clone_function_name.
6234         * cgraph.h (cgraph_create_virtual_clone,
6235         cgraph_function_versioning): update prototypes.
6236         (clone_function_name): Declare.
6237         * ipa-cp.c (ipcp_insert_stage): Update call of
6238         cgraph_create_virtual_clone.
6239         * omp-low.c (create_omp_child_function_name): Use
6240         cgraph_create_virtual_clone.
6241         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6242         (cgraph_function_versioning): Take SUFFIX argument; produce new name
6243         and make decl local.
6244
6245 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6246
6247         * vec.h: Include statistics.h
6248         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
6249         with VEC_H.
6250
6251 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6252
6253         * c-lex.c: Do not include c-tree.h.
6254         * c-pretty-print.c: Likewise.
6255         * c-opts.c: Likewise.
6256         * c-gimplify.c: Likewise.
6257         * c-common.c: Likewise.
6258         * c-dump.c: Likewise.  Include c-common.h.
6259
6260 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6261
6262         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6263         before including diagnostic-core.h.
6264         (c_cpp_error): New prototype moved from c-tree.h.
6265         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6266         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6267         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6268         (c_cpp_error): Prototype moved to c-common.h.
6269         * Makefile.in: Update dependency for C_COMMON_H.
6270
6271 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6272
6273         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6274         * c-common.c (c_register_addr_space): Remove here.
6275         * c-decl.c (c_register_addr_space): Re-add here.
6276
6277 2010-05-28  Mike Stump  <mikestump@comcast.net>
6278
6279         * config/darwin-c.c: Remove c-tree.h include.
6280
6281 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6282
6283         * gcc.c: Include diagnostic.h.
6284         (error_count): Remove.  All users changed to use errorcount.
6285         (programname): Remove.  All users changed to use progname.
6286         (fancy_abort, internal_error, fatal_error, error, warning, inform,
6287         fnotice): Remove.
6288         (execute): Don't include "Internal error" and bug reporting
6289         information in argument of internal_error call.
6290         (process_command): Don't increment error_count after calling
6291         perror_with_name.
6292         (input_filename): Rename to gcc_input_filename.  All users
6293         changed.
6294         (main): Call diagnostic_initialize.  Register delete_temp_files
6295         with atexit.  Use seen_error to test for errors.
6296         * gcc.h: Include diagnostic-core.h.
6297         (fatal_error, error, warning): Remove.
6298         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6299         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6300         (gcc.o): Update dependencies.
6301
6302 2010-05-28  Jeff Law  <law@redhat.com>
6303
6304         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6305         functions.
6306         * ira.h (ira_bad_reload_regno): Declare
6307         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6308
6309         * ira-color.c (update_curr_costs): Free updated hard reg costs.
6310         (ira_reassign_conflict_allocnos): Remove bogus asserts.
6311         (allocno_reload_assign): Likewise.
6312
6313 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
6314
6315         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6316         build1_stat.
6317
6318 2010-05-28  Richard Guenther  <rguenther@suse.de>
6319
6320         PR lto/44312
6321         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6322         Stream fixed-point constants mode.
6323         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6324         and TYPE_PRECISION.
6325         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6326         Stream fixed-point constants mode.
6327         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6328         and TYPE_PRECISION.
6329
6330 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6331
6332         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
6333         only place it was called from.
6334         (number_of_latch_executions): Do not return chrec_dont_know when the
6335         may_be_zero is a runtime condition: instead, return a COND_EXPR
6336         including the may_be_zero condition.
6337         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
6338         of nb_iterations.
6339         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
6340         COND_EXPRs.
6341
6342 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6343
6344         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
6345         generate COND_EXPRs for degenerate_phi_result.
6346
6347 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6348
6349         PR middle-end/44293
6350         * tree-if-conv.c (if_convertible_loop_p): Check the
6351         if-convertibility of phi nodes in non predicated BBs.
6352
6353 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6354
6355         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
6356
6357 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6358
6359         PR driver/15303
6360         * gcc.c (inform, warning, inform): New functions.
6361         (fatal_ice): Rename to internal_error; change cmsgid parameter to
6362         gmsgid.  All callers changed.
6363         (notice): Rename to fnotice; add parameter fp.  All callers changed.
6364         (fatal_error): Rename to fatal_signal.  All users changed.
6365         (fatal): Rename to fatal_error; change cmsgid parameter to
6366         gmsgid.  All callers changed.
6367         (process_command): Use warning instead of error for warnings.
6368         (end_going_arg): Don't use _() around argument of error.
6369         (do_spec_1): Use inform for message from %n specs.  Use warning
6370         instead of error for warnings.
6371         (main): Use inform for comparison messages.  Use warning for
6372         message about unused linker input.
6373         (error): Increment error_count.  Print "error: ".
6374         * gcc.h (fatal): Change to fatal_error.
6375         (warning): Declare.
6376         * config/darwin-driver.c (darwin_default_min_version): Use warning
6377         instead of fprintf for warnings.
6378         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
6379
6380 2010-05-28  Julian Brown  <julian@codesourcery.com>
6381
6382         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
6383         (*thumb2_addsi3_compare0_scratch): New.
6384         * config/arm/constraints.md (Pv): New.
6385         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
6386         for ARM mode only.
6387         (*addsi3_compare0_scratch): Likewise.
6388
6389 2010-05-28  Jan Hubicka  <jh@suse.cz>
6390
6391         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
6392         check.
6393         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
6394         only on local statics.
6395
6396 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
6397
6398         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
6399
6400 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
6401
6402         PR bootstrap/44314
6403         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
6404         (OPTION_GLIBC): Define.
6405
6406 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
6407
6408         PR debug/41048
6409         * dwarf2out.c (double_int_type_size_in_bits): New function.
6410         (round_up_to_align): Change first argument and return value to
6411         double_int.
6412         (field_byte_offset): Work internally on double_ints.
6413
6414         PR target/43636
6415         * builtins.c (expand_movstr): Use a temporary pseudo instead
6416         of target even when target is not NULL and not const0_rtx, but
6417         fails movstr predicate.
6418         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
6419
6420 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6421
6422         * final.c (rest_of_clean_state): Use %m in errors instead of
6423         strerror (errno).
6424         * gengtype.c (read_input_list, close_output_files): Use xstrerror
6425         instead of strerror.
6426         * toplev.c (process_options): Use %m in errors instead of strerror
6427         (errno).
6428         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
6429         (errno).
6430
6431 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
6432
6433         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
6434         (ix86_canonical_va_list_type): Make static.  Add declaration.
6435         (ix86_enum_va_list): Make static.  Reindent.
6436         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
6437         (ix86_canonical_va_list_type): Ditto.
6438         (ix86_enum_va_list): Ditto.
6439
6440 2010-05-28  Richard Guenther  <rguenther@suse.de>
6441
6442         * lto-wrapper.c (run_gcc): With -save-temps generate a
6443         user-visible ltrans filename.  Fixup ltrans unit numbering.
6444
6445 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
6446
6447         * c-common.c (c_common_nodes_and_builtins): Replace use
6448         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
6449         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
6450         to ix86_enum_va_list.
6451         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
6452         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
6453         (TARGET_ENUM_VA_LIST_P): Add hook description.
6454         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
6455         * target.h (gcc_target): Add enum_va_list hook.
6456
6457         PR bootstrap/44299
6458         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
6459         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
6460         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
6461
6462 2010-05-28  Alan Modra  <amodra@gmail.com>
6463
6464         PR target/44266
6465         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6466         emit_library_call machinery to set up __tls_get_addr calls.
6467
6468 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6469
6470         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
6471
6472 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
6473
6474         Revert fix for PR c++/44188
6475         * c-common.c (is_typedef_decl): Revert the moving of  this
6476         definition ...
6477         * tree.c (is_typedef_decl): ... here.
6478         (typdef_variant_p): Revert the moving of this  definition
6479         here from gcc/cp/tree.c.
6480         * c-common.h (is_typedef_decl): Revert the moving of this
6481         declaration ...
6482         * tree.h (is_typedef_decl): ... here.
6483         (typedef_variant_p): Revert the moving of this  declaration here
6484         from gcc/cp/cp-tree.h
6485         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
6486         (gen_tagged_type_die): Revert the splitting out of ...
6487         (gen_type_die_with_usage): ... this function. Revert the anonymous
6488         tagged type handling.
6489         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
6490         typedefs naming anonymous tagged types.
6491
6492 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
6493
6494         * config/rs6000/rs6000-modes.def (PSImode): Delete.
6495
6496 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
6497
6498         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
6499         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
6500         throughout.
6501         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
6502         "xer" to "ca".
6503         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
6504         XER_REGS to CA_REGS throughout.
6505         * config/rs6000/rs6000.h: Same.
6506         (ADDITIONAL_REGISTER_NAMES): Add "xer".
6507         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
6508         that mode_iterator "P" is the size for arithmetic carries as well.
6509         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
6510
6511 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
6512
6513         PR bootstrap/44255
6514         * combine.c (struct rtx_subst_pair): Define unconditionally.
6515         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
6516         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
6517         Call make_compound_operation on pair->to.
6518         (propagate_for_debug): Don't call make_compound_operation here.
6519         Always use simplify_replace_fn_rtx.
6520
6521 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
6522
6523         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
6524         * config/xtensa/xtensa.c (override_options): Check
6525           TARGET_FORCE_NO_PIC and set flag_pic.
6526         * config/xtensa/xtensa.opt: Document -mforce-no-pic
6527
6528 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
6529
6530         PR bootstrap/44299
6531         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
6532         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
6533
6534 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
6535
6536         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
6537         toplev.h.
6538         * diagnostic.c: Don't include toplev.h.
6539         (progname): Define.  Moved from toplev.c.
6540         (seen_error): New function.
6541         * diagnostic.h: Include diagnostic-core.h.
6542         (diagnostic_t, emit_diagnostic): Don't declare here.
6543         * toplev.c (progname): Move to toplev.c.
6544         (emit_debug_global_declarations, compile_file, finalize,
6545         do_compile, toplev_main): Use seen_error.
6546         * toplev.h: Include diagnostic-core.h.
6547         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
6548         internal_error, warning, warning_at, error, error_n, error_at,
6549         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
6550         verbatim, fnotice, progname): Move to diagnostic-core.h.
6551         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
6552         (expand_builtin_expect): Use seen_error.
6553         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
6554         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
6555         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
6556         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
6557         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
6558         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
6559         errorcount for errors.
6560         * c-opts.c (c_common_finish): Use seen_error.
6561         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6562         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
6563         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
6564         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
6565         (get_coverage_counts): Use seen_error.
6566         * dwarf2out.c (dwarf2out_finish): Use seen_error.
6567         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
6568         gimplify_body): Use seen_error.
6569         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
6570         * ipa-pure-const.c (gate_pure_const): Use seen_error.
6571         * ipa-reference.c (gate_reference): Use seen_error.
6572         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
6573         * lambda-code.c: Include diagnostic-core.h instead of
6574         diagnostic.h.
6575         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6576         * lto-compress.c: Include diagnostic-core.h instead of
6577         diagnostic.h.
6578         * lto-section-in.c: Include diagnostic-core.h instead of
6579         diagnostic.h.
6580         * lto-streamer-out.c: Include diagnostic-core.h instead of
6581         diagnostic.h.
6582         * lto-streamer.c: Include diagnostic-core.h instead of
6583         diagnostic.h.
6584         (gate_lto_out): Use seen_error.
6585         * matrix-reorg.c: Include diagnostic-core.h instead of
6586         diagnostic.h.
6587         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
6588         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
6589         (gate_expand_omp, lower_omp_1): Use seen_error.
6590         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
6591         (rest_of_decl_compilation, rest_of_type_compilation,
6592         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
6593         * tree-cfg.c (label_to_block_fn): Use seen_error.
6594         * tree-inline.c (optimize_inline_calls): Use seen_error.
6595         * tree-mudflap.c (mudflap_finish_file): Use
6596         seen_error.
6597         * tree-optimize.c (gate_all_optimizations,
6598         gate_all_early_local_passes, gate_all_early_optimizations): Use
6599         seen_error.
6600         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
6601         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
6602         (varpool_remove_unreferenced_decls,
6603         varpool_assemble_pending_decls): Use seen_error.
6604         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
6605         (TOPLEV_H, DIAGNOSTIC_H): Update.
6606         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
6607         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
6608         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
6609         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
6610         coverage.o, lambda-code.o): Update dependencies.
6611
6612 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
6613
6614         PR c++/44188
6615         * c-common.c (is_typedef_decl): Move this definition ...
6616         * tree.c (is_typedef_decl): ... here.
6617         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6618         * c-common.h (is_typedef_decl): Move this declaration ...
6619         * tree.h (is_typedef_decl): ... here.
6620         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6621         * dwarf2out.c (is_naming_typedef_decl): New function.
6622         (gen_tagged_type_die): Split out of ...
6623         (gen_type_die_with_usage): ... this function. When an anonymous
6624         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6625         is emitted for the typedef.
6626         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6627         anonymous tagged types.
6628
6629 2010-05-27  Jason Merrill  <jason@redhat.com>
6630
6631         * print-tree.c (debug_vec_tree): New fn.
6632         (print_vec_tree): New fn.
6633         * tree.h: Declare them.
6634         * gdbinit.in (pvt): New command.
6635
6636         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
6637
6638         * gdbinit.in (pdd): New command.
6639
6640 2010-05-27  Jan Hubicka  <jh@suse.cz>
6641
6642         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
6643         (update_caller_keys): Return early if there are no callers;
6644         only update fibheap when decresing the key.
6645         (update_callee_keys): Avoid recursion.
6646         (decide_inlining_of_small_functions): When badness does not match;
6647         re-insert into fibheap.
6648
6649 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
6650
6651         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
6652         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
6653         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
6654         (ALL_HOST_OBJS): Now a union of the above two.
6655         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
6656         all files in ALL_HOST_FRONTEND_OBJS.
6657         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
6658
6659         * c-common.c: Pretend to be a backend file by undefining
6660         IN_GCC_FRONTEND (still need rtl.h here).
6661
6662 2010-05-27  Jan Hubicka  <jh@suse.cz>
6663
6664         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
6665         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
6666
6667 2010-05-27  Jan Hubicka  <jh@suse.cz>
6668
6669         * sched-ebb.c: Rename struct deps to struct deps_desc.
6670         * ddg.c: Likewise.
6671         * sel-sched-ir.c: Likewise.
6672         * sched-deps.c: Likewise.
6673         * sched-int.h: Likewise.
6674         * sched-rgn.c: Likewise.
6675
6676 2010-05-27  Jon Beniston  <jon@beniston.com>
6677
6678         PR 43726
6679         * config/lm32/lm32.h: Remove definition of
6680         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
6681
6682 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6683
6684         PR lto/44230
6685         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
6686
6687 2010-05-27  Richard Guenther  <rguenther@suse.de>
6688
6689         PR tree-optimization/44284
6690         * tree-vect-stmts.c (vectorizable_assignment): Handle
6691         sign-changing conversions as simple copy.
6692
6693 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6694
6695         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
6696         Bionic C library.
6697         (__gthread_active_p): Check for pthread_create if compiling against
6698         Bionic C library.
6699
6700 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6701
6702         Support compilation for Android platform.  Reimplement -mandroid.
6703
6704         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
6705         (*android*): Set ANDROID_DEFAULT.
6706         (arm*-*-linux*): Include linux-android.h.
6707         (arm*-*-eabi*): Don't include previous -mandroid implementation.
6708         * config/arm/eabi.h: Remove, move Android-specific parts ...
6709         * config/linux-android.h: ... here.  New file.
6710         * config/arm/eabi.opt: Rename to ...
6711         * config/linux-android.opt: ... this.
6712         (mandroid): Allow -mno-android option.  Initialize based on
6713         ANDROID_DEFAULT.
6714         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
6715         Move logic to corresponding LINUX_TARGET_* macros.
6716         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
6717         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
6718         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
6719         Android definitions.
6720         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
6721         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
6722         Document.
6723
6724 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6725
6726         Add support for Bionic C library
6727
6728         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
6729         macro.
6730         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
6731         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
6732
6733         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
6734         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
6735         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
6736         to support multiple C libraries.  Handle Bionic.
6737         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
6738         (BIONIC_DYNAMIC_LINKER64): Define.
6739         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
6740         Update.
6741         (TARGET_HAS_SINCOS): Enable for Bionic.
6742
6743         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
6744         the last option specified on command line take effect.
6745         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
6746         (mbionic): New.
6747         (mglibc, muclibc): Update.
6748
6749         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
6750         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
6751         DEFAULT_LIBC.
6752
6753         * doc/invoke.texi (-mglibc, -muclibc): Update.
6754         (-mbionic): Document.
6755
6756 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6757
6758         * c-common.h (c_register_addr_space): Add prototype.
6759         (ADDR_SPACE_KEYWORD): Remove.
6760         * c-common.c (c_register_addr_space): New function.
6761         (c_addr_space_name): Reimplement.
6762         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
6763
6764         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
6765         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
6766
6767         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
6768         Remove TARGET_ADDR_SPACE_KEYWORDS.
6769
6770 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
6771
6772         * input.c: New file.
6773         * input.h (main_input_filename): Move declaration to toplev.h.
6774         * toplev.c (input_location, line_table): Move to input.c
6775         * toplev.h (main_input_filename): Move declaration from input.h.
6776         * tree.c (expand_location): Move to input.c.
6777         * Makefile.in (OBJS-common): Add input.o.
6778         (input.o): Add dependencies.
6779
6780 2010-05-27  Richard Guenther  <rguenther@suse.de>
6781
6782         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
6783         for non-existant files.
6784         (fork_execute): Mark args_name file as deleted.
6785
6786 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
6787
6788         PR bootstrp/44287
6789         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
6790         (narrow_signed_type): Likewise.
6791
6792 2010-05-26  Jan Hubicka  <jh@suse.cz>
6793
6794         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
6795         edge only when checking is enabled; check using former_clone_of;
6796         check inline clones too.
6797         (cgraph_materialize_clone): Record former_clone_of pointer.
6798         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
6799         combining redirections; dump args_to_skip bitmap
6800         (cgraph_materialize_all_clones): Do no redirection here.
6801         * ipa-inline.c (inline_transform): Do redirection here.
6802         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
6803         cheking only).
6804
6805 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6806
6807         * config/avr/avr-c.c: Do not include regs.h.
6808         Include cpplib.h for cpp_define and tree.h for c-common.h.
6809         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
6810         * config/avr/t-avr: Fix dependencies for avr-c.o.
6811
6812 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6813
6814         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
6815         string instead of SYMBOL_REF rtx.
6816         * rtl.h (set_stack_check_libfunc): Move prototype from here...
6817         * libfuncs.h: ...to here.  Adjust for explow.c change.
6818
6819 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
6820
6821         * pretty-print.c: Don't include ggc.h.
6822         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
6823         (identifier_to_locale): Use them for allocation.
6824         * pretty-print.h (identifier_to_locale_alloc,
6825         identifier_to_locale_free): Declare.
6826         * toplev.c (alloc_for_identifier_to_locale): New.
6827         (general_init): Set identifier_to_locale_alloc and
6828         identifier_to_locale_free.
6829         * Makefile.in (pretty-print.o): Update dependencies.
6830
6831 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6832
6833         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
6834         pointer types if they have different alignment or mode.
6835
6836 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
6837
6838         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6839         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6840         * config/sparc/sparc-protos.h (function_value): Remove declaration.
6841         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
6842         sparc_function_value_regno_p): New functions.
6843         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6844         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6845         (function_value): Rename to...
6846         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
6847         argument to 'outgoing'.
6848         (function_arg_record_value, function_arg_union_value,
6849         function_arg_vector_value): Update comment.
6850
6851 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6852
6853         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
6854         (fde_needed_for_eh_p): New predicate.
6855         (output_call_frame_info): Use it throughout to decide whether FDEs
6856         are needed for EH purpose.
6857         (dwarf2out_begin_prologue): Reorder assignments.
6858
6859 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6860
6861         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
6862         special case loop->header.
6863         (is_predicated): New.
6864         (if_convertible_loop_p): Call it.
6865
6866 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6867
6868         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
6869         iterator in parameter.  Do not generate code during the analysis.
6870         (tree_if_convert_cond_stmt): Removed.
6871         (tree_if_convert_stmt): Removed.
6872         (predicate_bbs): New.
6873         (if_convertible_loop_p): Call predicate_bbs.
6874         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
6875         now contains all the analysis part.
6876
6877 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6878
6879         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
6880         statements in the analysis part.
6881         (tree_if_convert_stmt): Update comment.
6882         (remove_conditions_and_labels): New.
6883         (combine_blocks): Call remove_conditions_and_labels.
6884         (tree_if_conversion): Update comment.
6885
6886 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6887
6888         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
6889         than 2 predecessors or more than 2 successors.
6890
6891 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6892
6893         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
6894         of loops in which the data dependence analysis fails.
6895
6896 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6897
6898         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
6899         CDI_POST_DOMINATORS.
6900         (tree_if_conversion): Same.
6901
6902 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6903
6904         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
6905
6906 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6907
6908         * tree-if-conv.c: Update copyright years.  Fix comments.
6909         Fix indentation.
6910
6911 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
6912
6913         * builtin-types.def (BT_INT128): New primitive type.
6914         (BT_UINT128): Likewise.
6915         * c-common.c (c_common_r): Add __int128 keyword.
6916         (c_common_type_for_size): Handle __int128.
6917         (c_common_type_for_mode): Likewise.
6918         (c_common_signed_or_unsigned_type): Likewise.
6919         (c_common_nodes_and_builtins): Add builtin type
6920         if target supports 128-bit integer scalar.
6921         * c-common.h (enum rid): Add RID_INT128.
6922         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
6923         if target supports 128-bit integer scalar.
6924         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
6925         (finish_declspecs): Likewise.
6926         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
6927         (c_token_starts_declspecs): Likewise.
6928         (c_parser_declspecs): Likewise.
6929         (c_parser_attributes): Likewise.
6930         (c_parser_objc_selector): Likewise.
6931         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
6932         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
6933         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
6934         * tree.c (make_or_reuse_type): Likewise.
6935         (make_unsigned_type): Likewise.
6936         (build_common_tree_nodes_2): Likewise.
6937         * tree.h (enum integer_type_kind): Add itk_int128 and
6938         itk_unsigned_int128.
6939         (int128_integer_type_node): New define.
6940         (int128_unsigned_type_node): New define.
6941         * doc/extend.texi: Add documentation about __int128 type.
6942
6943 2010-05-26  Richard Guenther  <rguenther@suse.de>
6944
6945         * tree-ssa-sccvn.c (copy_nary): Adjust.
6946         (copy_phis): Rename to ...
6947         (copy_phi): ... this.  Adjust.
6948         (copy_references): Rename to ...
6949         (copy_reference): ... this.  Adjust.
6950         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
6951         result into the valid table.
6952
6953 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6954
6955         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
6956         insn-config.h, insn-codes.h, recog.h, and optabs.h.
6957
6958 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6959
6960         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
6961
6962 2010-05-26  Richard Guenther  <rguenther@suse.de>
6963
6964         * opts.c (common_handle_option): Handle OPT_Ofast.
6965
6966 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
6967
6968         * diagnostic.c: Don't include opts.h.
6969         (permissive_error_option): Define.
6970         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
6971         for classify_diagnostic.  Don't use memset for
6972         classify_diagnostic.  Initialize new and recently added fields.
6973         (diagnostic_classify_diagnostic): Use context->n_opts instead of
6974         N_OPTS.
6975         (diagnostic_report_diagnostic): Pass context parameter to
6976         diagnostic_report_warnings_p.  Use option_enabled and option_name
6977         hooks from context.
6978         (emit_diagnostic): Use permissive_error_option.
6979         (permerror): Likewise.
6980         * diagnostic.h: Don't include options.h.
6981         (struct diagnostic_context): Add n_opts, opt_permissive,
6982         inhibit_warnings, warn_system_headers, option_enabled and
6983         option_name fields.  Change classify_diagnostic to a pointer.
6984         * opts-diagnostic.h: New file.
6985         * opts.c: Include opts-diagnostic.h.
6986         (common_handle_option): Set global_dc fields for -Wfatal-errors,
6987         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
6988         (option_name): New function.
6989         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
6990         (c_common_handle_option): Set global_dc->permissive for
6991         -fpermissive.
6992         * c-common.c (c_cpp_error): Save and restore
6993         global_dc->warn_system_headers, not variable warn_system_headers.
6994         * toplev.c: Include opts-diagnostic.h.
6995         (general_init): Update call to diagnostic_initialize.  Set
6996         global_dc->show_column, global_dc->option_enabled and
6997         global_dc->option_name.
6998         (process_options): Don't set global_dc fields here.
6999         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7000         (diagnostic.o, opts.o, toplev.o): Update dependencies.
7001
7002 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7003
7004         * config/picochip/picochip.md (movsi): Split a movsi from a
7005         const after reload.
7006
7007 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7008
7009         * ggc-zone.c: Update copyright year.
7010         (poison_region): Mark memory for Valgrind as undefined before
7011         memset () call and inaccessible afterwards.
7012         (ggc_pch_total_size): Change type of i to int.
7013
7014 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7015
7016         * ggc-common.c (ggc_free_overhead): Allow empty slot.
7017
7018 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7019
7020         * ggc-common.c: Update copyright year.
7021         (ggc_rlimit_bound): Remove prototype.  Compile only if
7022         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7023         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7024         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
7025         (ggc_min_heapsize_heuristic): Likewise.
7026
7027 2010-05-26  Richard Guenther  <rguenther@suse.de>
7028
7029         PR rtl-optimization/44164
7030         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7031         no-common access-path disambiguation.
7032         (indirect_ref_may_alias_decl_p): Adjust.
7033         (indirect_refs_may_alias_p): Likewise.
7034         (refs_may_alias_p_1): Likewise.
7035
7036 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7037
7038         * c-typeck.c: Do not include expr.h.
7039
7040 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7041
7042         * rtl.h (decl_default_tls_model): Move prototype from here...
7043         * output.h: ...to here.
7044         * c-decl.c: Do not include rtl.h.
7045         * c-pragma.c: Likewise.
7046         * c-parser.c: Likewise.
7047         * c-gimplify.c: Likewise.  And also not hard-reg-set.
7048         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
7049         FIXME note for it.  Add a FIXME note for expr.h.
7050         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7051         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7052         defined.
7053
7054 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
7055
7056         PR target/44199
7057         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7058         or total_size is larger than red zone size for non-V4 ABI, emit a
7059         stack_tie resp. frame_tie insn before stack pointer restore.
7060         * config/rs6000/rs6000.md (frame_tie): New insn.
7061
7062 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7063
7064         * function.h (struct function): Add can_throw_non_call_exceptions bit.
7065         * lto-streamer-in.c (input_function): Stream it in.
7066         * lto-streamer-out.c (output_function): Stream it out.
7067         * function.c (allocate_struct_function): Set it.
7068         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7069         for flag_non_call_exceptions.
7070         * cfgbuild.c (control_flow_insn_p): Likewise.
7071         (make_edges): Likewise.
7072         * cfgexpand.c (expand_stack_alignment): Likewise.
7073         * combine.c (distribute_notes): Likewise.
7074         * cse.c (cse_extended_basic_block): Likewise.
7075         * except.c (insn_could_throw_p): Likewise.
7076         * gcse.c (simple_mem): Likewise.
7077         * ipa-pure-const.c (check_call): Likewise.
7078         (check_stmt ): Likewise.
7079         * lower-subreg.c (lower-subreg.c): Likewise.
7080         * optabs.c (emit_libcall_block): Likewise.
7081         (prepare_cmp_insn): Likewise.
7082         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7083         * postreload.c (rest_of_handle_postreload): Likewise.
7084         * reload1.c (reload_as_needed): Likewise.
7085         (emit_input_reload_insns): Likewise.
7086         (emit_output_reload_insns): Likewise.
7087         (fixup_abnormal_edges): Likewise.
7088         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7089         * store-motion.c (find_moveable_store): Likewise.
7090         * tree-eh.c (stmt_could_throw_p): Likewise.
7091         (tree_could_throw_p): Likewise.
7092         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7093         * config/arm/arm.c (arm_expand_prologue): Likewise.
7094         (thumb1_expand_prologue): Likewise.
7095         * config/rx/rx.md (cbranchsf4): Likewise.
7096         (cmpsf): Likewise.
7097         * config/s390/s390.c (s390_emit_prologue): Likewise.
7098         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7099         (inline_forbidden_into_p): New predicate.
7100         (expand_call_inline): Use it to forbid inlining.
7101         (tree_can_inline_p): Likewise.
7102
7103 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7104
7105         * config/i386/i386-c.c: Do not include rtl.h.
7106         * config/i386/t-i386: Update dependencies.
7107
7108 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7109
7110         * attribs.c: Do not include rtl.h.
7111         * Makefile.in: Update dependencies.
7112
7113 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
7114
7115         * double-int.h (double_int_and): New.
7116         * combine.c (try_combine): Clean up, use double_int_* and
7117         immed_double_int_const functions.
7118
7119 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7120
7121         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7122         stderr to /dev/null instead of grep -q.
7123         * configure: Regenerate.
7124
7125 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7126
7127         * Makefile.in (EXCEPT_H): Fix typo.
7128
7129 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
7130
7131         * ira-build.c (update_conflict_hard_reg_costs): New.
7132         (ira_build): Call update_conflict_hard_reg_costs.
7133
7134 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7135
7136         PR debug/41371
7137         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7138         ENABLE_CHECKING.
7139         (intersect_loc_chains): Walk the s2var's loc_chain together
7140         with s1node chain as long as the locations are equal, don't
7141         call find_loc_in_1pdv in that case.
7142
7143         PR debug/42801
7144         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7145         (copy_bind_expr): ... instead of here.
7146         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7147         if the block hasn't been remapped.
7148         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7149         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7150
7151 2010-05-25  Richard Guenther  <rguenther@suse.de>
7152
7153         PR middle-end/44069
7154         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7155         out-of-bounds array accesses.
7156
7157 2010-05-25  Richard Guenther  <rguenther@suse.de>
7158
7159         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7160         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7161         (run_gcc): Re-organize to make cleanup easier.
7162
7163 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7164
7165         * config/s390/s390.c (optimization_options): Fix and move the
7166         flag_prefetch_loop_arrays override ...
7167         (override_options): ... here.
7168
7169 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
7170
7171         * diagnostic.c: Don't include plugin.h.
7172         (diagnostic_report_diagnostic): Don't handle plugins specially
7173         here.  Pass context to internal_error callback.
7174         * diagnostic.h (struct diagnostic_context): Add context parameter
7175         to internal_error callback.
7176         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7177         * plugin.h (struct diagnostic_context): Declare.
7178         (warn_if_plugins, plugins_internal_error_function): Declare.
7179         * toplev.c (general_init): Set global_dc->internal_error.
7180         * Makefile.in (diagnostic.o): Update dependencies.
7181
7182 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
7183
7184         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7185         * config/rs6000/t-darwin64: New.
7186         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7187         build crt2.
7188
7189 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
7190
7191         PR 44203
7192         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7193         match the original (and intended) behaviour before r159557.  This
7194         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7195         in two ways.
7196
7197 2010-05-25  Richard Guenther  <rguenther@suse.de>
7198
7199         * doc/invoke.texi: Document -Ofast.
7200         * target.h (struct gcc_target): Add handle_ofast.
7201         * target-def.h (TARGET_HANDLE_OFAST): Add.
7202         (TARGET_INITIALIZER): Adjust.
7203         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
7204         * common.opt (Ofast): Add.
7205
7206 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7207
7208         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7209         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7210
7211 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7212
7213         PR target/43610
7214         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7215         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
7216         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
7217         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7218
7219 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7220
7221         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7222         DW_OP_minus with negated offset instead of DW_OP_plus.
7223         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7224
7225 2010-05-25  Wei Guozhi  <carrot@google.com>
7226
7227         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7228         tst instruction and a new alternative.
7229         * config/arm/constraints.md (Pu): New constraint.
7230
7231 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
7232
7233         * function.c (assign_stack_local_1): Initialize variable
7234         to avoid warning when bootstrapping at -O3.
7235
7236 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
7237
7238         * configure.ac (all_lang_makefiles): Remove everything related to it.
7239         * configure: Regenerate.
7240         * Makefile.in: Fix reference to ada Make-lang.in.
7241         Remove support for LANG_MAKEFILES.
7242
7243 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
7244             Sandra Loosemore  <sandra@codesourcery.com>
7245
7246         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7247         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7248         description.  Add arm_neon_fp16_ok.
7249         (Add Options): Add arm_neon and arm_neon_fp16.
7250
7251 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
7252
7253         * diagnostic.c: Don't include flags.h.
7254         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7255         context parameters.  Check flags in the context passed as a parameter.
7256         (diagnostic_build_prefix): Add context parameter.  Check
7257         show_column flag in context.
7258         (diagnostic_action_after_output): Check fatal_errors flag in context.
7259         (diagnostic_report_current_module): Check show_column flag in context.
7260         (default_diagnostic_starter): Update call to
7261         diagnostic_build_prefix.
7262         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7263         (emit_diagnostic): Pass context to permissive_error_kind.
7264         (permerror): Pass context to permissive_error_kind.
7265         * diagnostic.h (struct diagnostic_context): Add show_column,
7266         pedantic_errors, permissive and fatal_errors fields.
7267         (diagnostic_build_prefix): Update prototype.
7268         * langhooks.c
7269         * toplev.c (process_options): Set flags in global_dc from
7270         flag_show_column, flag_pedantic_errors, flag_permissive,
7271         flag_fatal_errors.
7272         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7273         to diagnostic_build_prefix.
7274         * Makefile.in (diagnostic.o): Update dependencies.
7275
7276 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7277
7278         * config/i386/ia32intrin.h (__crc32q): Define only if
7279         __SSE4_2__ is defined.
7280
7281 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
7282
7283         PR target/44132
7284         PR middle-end/43602
7285         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7286         DECL_VISIBILITY_SPECIFIED.
7287         (emutls_decl): Set DECL_PRESERVE_P and copy
7288         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7289         (emutls_finalize_control_var): New callback.
7290         (emutls_finish): Finalize emutls control variables.
7291         * toplev.c (compile_file): Move the call to emutls_finish ()
7292         before varpool_assemble_pending_decls ().
7293
7294 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
7295
7296         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7297         added to the preprocessor condition.
7298
7299 2010-05-24  Paul Brook  <paul@codesourcery.com>
7300
7301         * gengtype-lex.l: Add HARD_REG_SET.
7302         * expr.c (expand_expr_real_1): Record writes to hard registers.
7303         * function.c (rtl_data): Add asm_clobbers.
7304         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7305         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7306         Use crtl->asm_clobbers.
7307
7308 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7309
7310         * doc/makefile.texi (Makefile): Mention stages 'profile'
7311         and 'feedback' for profiledbootstrap.
7312
7313 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7314
7315         PR target/44245
7316         * config/i386/i386.c (def_builtin): Properly check
7317         OPTION_MASK_ISA_64BIT.
7318
7319 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
7320
7321         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7322         typedefs with different but compatible types.  Allow duplicate
7323         typedefs with the same type except for pedantic non-C1X, but give
7324         warning for variably modified types.
7325         * c-typeck.c (tagged_types_tu_compatible_p,
7326         function_types_compatible_p, type_lists_compatible_p,
7327         comptypes_internal): Add parameter different_types_p; set
7328         *different_types_p for different but compatible types.  All
7329         callers changed.
7330         (comptypes_check_different_types): New.
7331         * c-tree.h (comptypes_check_different_types): Declare.
7332
7333 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7334
7335         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
7336         * jump.c: Include basic-block.h.
7337         * profile.c: Likewise.
7338         * tree-profile.c: Likewise.
7339         * coverage.c: Likewise.
7340         * basic-block.h (optimize_function_for_size_p): Move to function.h.
7341         (optimize_function_for_speed_p): Likewise.
7342         * function.h (optimize_function_for_size_p,
7343         optimize_function_for_speed_p): Moved here from basic-block.h.
7344         * Makefile.in: Update dependencies.
7345
7346 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7347
7348         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
7349         before calling make; allow override through $MAKE.
7350         * doc/invoke.texi (Optimize Options): Document override.
7351
7352 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
7353
7354         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
7355         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7356         (rs6000_mode_dependent_address_ptr): Make static.
7357         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7358         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
7359         Remove.
7360
7361 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
7362
7363         PR target/43869
7364         * config/i386/i386.c: Make sure that the correct regparm is passed.
7365
7366 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7367
7368         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
7369         * sbitmap.c: ...to here to internalize sbitmap element access.
7370         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
7371         Explain why basic-block.h is included.
7372         * function.h: Include tm.h for CUMULATIVE_ARGS.
7373         * Makefile.in: Update dependencies.
7374
7375 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7376
7377         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
7378         New core types.
7379         * sbitmap.h (struct sbitmap_def): Do not typedef here.
7380         * sbitmap.c: Include sbitmap.h.
7381         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
7382         hard-reg-set.h.  Split everything related to regsets out from here...
7383         * regset.h: ...to here.  New file.
7384         * df.h: Include regset.h and sbitmap.h.
7385         * tree-flow.h: Likewise.
7386         * cfgloop.h: Likewise.
7387         * except.h: Do not include sbitmap.h.  Include hashtab.h.
7388         * cgraph.h: Include vec.h and function.h.
7389         * reload.h (struct insn_chain): Change types of live_throughout
7390         and dead_or_set from regset_head to bitmap_head.
7391         (compute_use_by_pseudos): Be defined also if regset.h is not included.
7392         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
7393         spilled_regs from regset_head to bitmap_head to avoid dependency
7394         in regset.h.
7395         * sel-sched-ir.h: Include regset.h.
7396         * reload.c: Include df.h before reload.h.
7397         * caller-save.c: Likewise.
7398         * reload1.c: Likewise.
7399         * ira.c: Likewise.
7400         (mark_elimination): Update type of r to bitmap, consistent with
7401         DF_LR_IN.
7402         * dominance.c: Include bitmap.h.
7403         * modulo-sched.c: Include df.h.
7404         * cfganal.c: Include bitmap.h and sbitmap.h.
7405         * cfgbuild.c: Include sbitmap.h.
7406         * lcm.c: Include sbitmap.h.
7407         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
7408         * domwalk.c: Include sbitmap.h, exclude ggc.h.
7409         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
7410         * cselib.c: Include bitmap.h.
7411         * tree-optimize.c: Include regset.h.
7412         * stmt.c: Include bitmap.h.
7413         * Makefile.in: Update dependencies.
7414
7415 2010-05-22  Jan Hubicka  <jh@suse.cz>
7416
7417         * cgraph.h (struct varpool_node): Add same_comdat_group.
7418         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
7419         pointer.
7420         (output_varpool): Update call of lto_output_varpool_node.
7421         (input_varpool): Read same_comdat_group pointer.
7422         (input_varpool_1): Fixup same_comdat_group pointer.
7423         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
7424         group is needed, all are.
7425         * varpool.c (varpool_remove_node): Remove node from same comdat group
7426         linklist too.
7427         (varpool_analyze_pending_decls): Walk same comdat groups.
7428
7429 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7430
7431         * rtl.h (union rtunion_def): Remove rt_bit member.
7432         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
7433         * print-rtl (print_rtx): Do not print the member.
7434         * gengtype.c (adjust_field_rtx_def): Do not handle it.
7435         * gengenrtl.c (type_from_format): Likewise.
7436         (accessor_from_format): Likewise.
7437
7438 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
7439
7440         * dbgcnt.c: Include toplev.h instead of errors.h.
7441         * ira-emit.c: Don't include errors.h.
7442         * ira.c: Include toplev.h instead of errors.h.
7443         * lto-compress.c: Include toplev.h instead of errors.h.
7444         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
7445         ira.o, dbgcnt.o): Update dependencies.
7446
7447 2010-05-22  Richard Guenther  <rguenther@suse.de>
7448
7449         * gimple.c (gimple_types_compatible_p): Check type qualifications
7450         before merging pointer to complete and pointer to incomplete type.
7451         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
7452         we use our own resolution algorithm.  The gold linker plugin
7453         doesn't do the job we want it to do here.
7454
7455 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
7456
7457         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7458         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7459         (sparc_mode_dependent_address_p): New function.
7460
7461 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7462
7463         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
7464
7465         * timevar.c: Do not include any core headers.
7466         (timevar_print): De-i18n-ize.
7467         (print_time): Likewise.
7468         * timevar.h (timevar_push, timevar_pop): Make inline functions.
7469
7470 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
7471
7472         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
7473         langhooks-def.h.
7474         (diagnostic_initialize): Initialize x_data not last_function.
7475         (diagnostic_report_current_function): Move to tree-diagnostic.c.
7476         (default_diagnostic_starter): Call
7477         diagnostic_report_current_module not
7478         diagnostic_report_current_function.
7479         (diagnostic_report_diagnostic): Initialize x_data not
7480         abstract_origin.
7481         (verbatim): Likewise.
7482         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
7483         x_data.
7484         (struct diagnostic_context): Change last_function to x_data.
7485         (diagnostic_auxiliary_data): Replace with
7486         diagnostic_context_auxiliary_data and
7487         diagnostic_info_auxiliary_data.
7488         (diagnostic_last_function_changed, diagnostic_set_last_function,
7489         diagnostic_report_current_function): Move to tree-diagnostic.h.
7490         (print_declaration, dump_generic_node, print_generic_stmt,
7491         print_generic_stmt_indented, print_generic_expr,
7492         print_generic_decl, debug_c_tree, dump_omp_clauses,
7493         print_call_name, debug_generic_expr, debug_generic_stmt,
7494         debug_tree_chain, default_tree_printer): Move to
7495         tree-pretty-print.h.
7496         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
7497         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
7498         gimple-pretty-print.h.
7499         * pretty-print.c: Don't include tree.h
7500         (pp_base_format): Don't handle %K here.
7501         (pp_base_tree_identifier): Move to tree-pretty-print.c.
7502         * pretty-print.h (text_info): Change abstract_origin to x_data.
7503         (pp_tree_identifier, pp_unsupported_tree,
7504         pp_base_tree_identifier): Move to tree-pretty-print.h.
7505         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
7506         tree-pretty-print.h: New files.
7507         * tree-pretty-print.c: Include tree-pretty-print.h.
7508         (percent_K_format): New.  Moved from pretty-print.c.
7509         (pp_base_tree_identifier): Move from pretty-print.c.
7510         * c-objc-common.c: Include tree-pretty-print.h.
7511         (c_tree_printer): Handle %K here.
7512         * langhooks.c: Include tree-diagnostic.h.
7513         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
7514         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
7515         (default_tree_printer): Handle %K using percent_K_format.
7516         (general_init): Use default_tree_diagnostic_starter.
7517         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
7518         (free_lang_data): Use default_tree_diagnostic_starter.
7519         * c-pretty-print.c: Include tree-pretty-print.h.
7520         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7521         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7522         * dwarf2out.c: Include tree-pretty-print.h.
7523         * except.c: Include tree-pretty-print.h.
7524         * gimple-pretty-print.c: Include tree-pretty-print.h and
7525         gimple-pretty-print.h.
7526         * gimplify.c: Include tree-pretty-print.h.
7527         * graphite-poly.c: Include tree-pretty-print.h and
7528         gimple-pretty-print.h.
7529         * ipa-cp.c: Include tree-pretty-print.h.
7530         * ipa-inline.c: Include gimple-pretty-print.h.
7531         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7532         * ipa-pure-const.c: Include gimple-pretty-print.h.
7533         * ipa-struct-reorg.c: Include tree-pretty-print.h and
7534         gimple-pretty-print.h.
7535         * ipa-type-escape.c: Include tree-pretty-print.h.
7536         * print-rtl.c: Include tree-pretty-print.h.
7537         * print-tree.c: Include gimple-pretty-print.h.
7538         * sese.c: Include tree-pretty-print.h.
7539         * tree-affine.c: Include tree-pretty-print.h.
7540         * tree-browser.c: Include tree-pretty-print.h.
7541         * tree-call-cdce.c: Include gimple-pretty-print.h.
7542         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7543         * tree-chrec.c: Include tree-pretty-print.h.
7544         * tree-data-ref.c: Include tree-pretty-print.h and
7545         gimple-pretty-print.h.
7546         * tree-dfa.c: Include tree-pretty-print.h.
7547         * tree-if-conv.c: Include tree-pretty-print.h and
7548         gimple-pretty-print.h.
7549         * tree-inline.c: Include tree-pretty-print.h.
7550         * tree-into-ssa.c: Include tree-pretty-print.h and
7551         gimple-pretty-print.h.
7552         * tree-nrv.c: Include tree-pretty-print.h.
7553         * tree-object-size.c: Include tree-pretty-print.h and
7554         gimple-pretty-print.h.
7555         * tree-outof-ssa.c: Include tree-pretty-print.h and
7556         gimple-pretty-print.h.
7557         * tree-parloops.c: Include tree-pretty-print.h and
7558         gimple-pretty-print.h.
7559         * tree-predcom.c: Include tree-pretty-print.h and
7560         gimple-pretty-print.h.
7561         * tree-scalar-evolution.c: Include tree-pretty-print.h and
7562         gimple-pretty-print.h.
7563         * tree-sra.c: Include tree-pretty-print.h.
7564         * tree-ssa-address.c: Include tree-pretty-print.h.
7565         * tree-ssa-alias.c: Include tree-pretty-print.h.
7566         * tree-ssa-ccp.c: Include tree-pretty-print.h and
7567         gimple-pretty-print.h.
7568         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
7569         * tree-ssa-copy.c: Include tree-pretty-print.h and
7570         gimple-pretty-print.h.
7571         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
7572         * tree-ssa-dce.c: Include tree-pretty-print.h and
7573         gimple-pretty-print.h.
7574         * tree-ssa-dom.c: Include tree-pretty-print.h and
7575         gimple-pretty-print.h.
7576         * tree-ssa-dse.c: Include gimple-pretty-print.h.
7577         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
7578         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
7579         * tree-ssa-live.c: Include tree-pretty-print.h and
7580         gimple-pretty-print.h.
7581         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
7582         gimple-pretty-print.h.
7583         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
7584         gimple-pretty-print.h.
7585         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
7586         gimple-pretty-print.h.
7587         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
7588         gimple-pretty-print.h.
7589         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
7590         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
7591         * tree-ssa-operands.c: Include tree-pretty-print.h and
7592         gimple-pretty-print.h.
7593         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
7594         gimple-pretty-print.h.
7595         * tree-ssa-pre.c: Include tree-pretty-print.h and
7596         gimple-pretty-print.h.
7597         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
7598         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
7599         gimple-pretty-print.h.
7600         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
7601         gimple-pretty-print.h.
7602         * tree-ssa-sink.c: Include gimple-pretty-print.h.
7603         * tree-ssa-ter.c: Include tree-pretty-print.h and
7604         gimple-pretty-print.h.
7605         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
7606         * tree-ssa.c: Include tree-pretty-print.h and
7607         gimple-pretty-print.h.
7608         * tree-stdarg.c: Include gimple-pretty-print.h.
7609         * tree-switch-conversion.c: Include gimple-pretty-print.h.
7610         * tree-tailcall.c: Include tree-pretty-print.h and
7611         gimple-pretty-print.h.
7612         * tree-vect-data-refs.c: Include tree-pretty-print.h and
7613         gimple-pretty-print.h.
7614         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
7615         gimple-pretty-print.h.
7616         * tree-vect-loop.c: Include tree-pretty-print.h and
7617         gimple-pretty-print.h.
7618         * tree-vect-patterns.c: Include gimple-pretty-print.h.
7619         * tree-vect-slp.c: Include tree-pretty-print.h and
7620         gimple-pretty-print.h.
7621         * tree-vect-stmts.c: Include tree-pretty-print.h and
7622         gimple-pretty-print.h.
7623         * tree-vectorizer.c: Include tree-pretty-print.h.
7624         * tree-vrp.c: Include tree-pretty-print.h and
7625         gimple-pretty-print.h.
7626         * value-prof.c: Include tree-pretty-print.h and
7627         gimple-pretty-print.h.
7628         * var-tracking.c: Include tree-pretty-print.h.
7629         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
7630         (tree-diagnostic.o): New dependencies.
7631         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
7632         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
7633         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
7634         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
7635         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
7636         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
7637         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
7638         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
7639         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
7640         tree-ssa-address.o, tree-ssa-loop-niter.o,
7641         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
7642         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
7643         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
7644         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
7645         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
7646         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
7647         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
7648         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
7649         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
7650         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
7651         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
7652         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
7653         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
7654         tree-switch-conversion.o, var-tracking.o, value-prof.o,
7655         cfgexpand.o, pretty-print.o): Update dependencies.
7656
7657 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
7658
7659         * tree-ssa-structalias.c: Remove tm_p.h from include.
7660
7661 2010-05-21  Jeff Law  <law@redhat.com>
7662
7663         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
7664
7665 2010-05-21  Jason Merrill  <jason@redhat.com>
7666
7667         * tree-eh.c (cleanup_is_dead_in): New.
7668         (lower_try_finally): Don't generate a dead cleanup region.
7669         (lower_cleanup): Likewise.
7670
7671 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7672
7673         PR debug/44223
7674         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
7675         unchain each use from the cyclic next_regno_use chain first.
7676
7677 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7678
7679         * real: Do not include gmp.h, mpfr.h, and mpc.h.
7680         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
7681         (real_value_negate, real_value_abs): New prototypes.
7682         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
7683         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
7684         new include file for interface between MPFR and REAL_VALUE_TYPE.
7685         * real.c: Include realmpfr.h.
7686         (real_arithmetic2): Remove legacy function.
7687         (real_value_negate): New.
7688         (real_value_abs): New.
7689         (mfpr_from_real, real_from_mpfr): Move from here...
7690         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
7691         * builtins.c: Include realmpfr.h.
7692         * fold-const.c: Include realmpfr.h.
7693         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
7694         (fold_negate_const): Likewise.
7695         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
7696         * toplev.c: Include realmpfr.h.
7697         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
7698         and real_value_negate.
7699         * fixed-value.c (check_real_for_fixed_mode): Likewise.
7700         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
7701         (vfp3_const_double_index): Likewise.
7702         (arm_print_operand): Likewise.
7703         * Makefile.in: Update dependencies.
7704
7705 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7706
7707         * config/s390/s390.c (override_options): Increase the default
7708         of max-completely-peel-times.
7709
7710 2010-05-21  Julian Brown  <julian@codesourcery.com>
7711             Mark Mitchell  <mark@codesourcery.com>
7712
7713         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
7714         sibling calls for Thumb-1.
7715         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
7716         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
7717         Thumb-2.
7718         (*call_insn, *call_value_insn): Don't use for Thumb-2.
7719         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
7720         for Thumb-2.
7721         (return): New expander.
7722         (*arm_return): New name for ARM return insn.
7723         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
7724
7725 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
7726
7727         * config.gcc (sparc64-*-rtems*): New target.
7728
7729 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7730
7731         * tree.c (build_function_decl_skip_args): Fix grammar.
7732         (build_function_type_list_1): Fix typos, adjust formatting.
7733
7734 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7735
7736         * tree.h: Include real.h and fixed-value.h as basic datatypes.
7737         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
7738         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
7739         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
7740         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
7741         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
7742         tree-pretty-print.c, tree-loop-distribution.c,
7743         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
7744         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
7745         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
7746         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
7747         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
7748         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
7749         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
7750         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
7751         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
7752         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
7753         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
7754         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
7755         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
7756         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
7757         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
7758         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
7759         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
7760         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
7761         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
7762         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
7763         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
7764         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
7765         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
7766         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
7767         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
7768         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
7769         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
7770         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
7771         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
7772         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
7773         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
7774         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
7775         config/score/score7.c, config/score/score.c, config/arm/arm.c,
7776         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
7777         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
7778         config/bfin/bfin.c: Clean up redundant includes.
7779         * Makefile.in: Update accordingly.
7780
7781 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7782
7783         PR middle-end/44204
7784         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
7785         statement has no arguments.
7786
7787 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
7788
7789         PR/44139
7790         * varasm.c (emutls_decl): Merge attributes to new decl.
7791
7792 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7793
7794         PR middle-end/44101
7795         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
7796         around the uniquized constructor if its type requires a conversion.
7797
7798 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7799
7800         PR debug/44205
7801         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
7802         at -O0 goto_locus of any of the incoming edges differs from
7803         goto_locus of outgoing edge, or gimple_location of any of the
7804         labels differs.
7805
7806 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
7807
7808         * ira.c (ira_non_ordered_class_hard_regs): Define.
7809         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
7810         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
7811         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
7812         cost of unaligned hard regs when allocating multi-reg pseudos.
7813
7814 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
7815
7816         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
7817         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
7818         for TARGET_NO_FLOAT.
7819         * config/mips/mips.c (mips_file_start): Expand conditional expression
7820         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
7821         (mips_override_options): Move -mno-float override -msoft-float and
7822         -mhard-float.
7823         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
7824         Condition(TARGET_SUPPORTS_NO_FLOAT).
7825         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
7826         __mips_no_float here.
7827         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
7828         (TARGET_SUPPORTS_NO_FLOAT): Define.
7829         * config/mips/sdemtk.opt: Delete.
7830
7831 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
7832
7833         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
7834
7835 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
7836
7837         PR target/43733
7838         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
7839         * configure: Regenerate.
7840         * config.in: Regenerate.
7841         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
7842         instead of sahf only for 64bit targets.
7843
7844 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
7845
7846         PR debug/44178
7847         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
7848         setup_ref_regs for DEBUG_INSNs.
7849
7850 2010-05-20  Jan Hubicka  <jh@suse.cz>
7851
7852         PR middle-end/44197
7853         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
7854
7855 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
7856
7857         PR bootstrap/43870
7858         * df-scan.c (df_ref_compare): Stabilize sort.
7859
7860 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
7861
7862         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
7863         argument.  Don't use DW_OP_piece if offset is non-zero,
7864         put offset into second DW_OP_bit_piece argument.
7865         (dw_sra_loc_expr): Adjust callers.  For memory expressions
7866         compute offset.
7867
7868 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
7869
7870         PR target/44202
7871         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
7872         settings for 16-bit-constant "addo" alternative.
7873
7874 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
7875
7876         * config/mips/mips-dsp.md (add<DSPV:mode>3,
7877         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
7878
7879         PR target/43764
7880         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
7881         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
7882         Use it.
7883
7884 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
7885
7886         * diagnostic.c (FLOAT, FFS): Don't undefine.
7887         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
7888         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
7889         include ordering.
7890
7891 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
7892
7893         * combine.c (propagate_for_debug): Call make_compound_operation
7894         on the source value.
7895         (try_combine): When implementing a split chosen by find_split_point,
7896         either copy i2src or set it to null.  Assert that i2src is not null
7897         before substituting into CALL_INSN_FUNCTION_USAGE.
7898
7899 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
7900
7901         * double-int.h (double_int_ior): New function.
7902         * tree.h (build_int_cst_wide_type): Remove.
7903         * tree.c (build_int_cst_wide_type): Remove.
7904         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
7905         of build_int_cst_wide_type.
7906         * stor-layout.c (set_sizetype): (Ditto.).
7907         * dojump.c (do_jump): Use build_int_cstu instead of
7908         build_int_cst_wide_type.
7909
7910 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7911
7912         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
7913         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
7914         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
7915         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
7916         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
7917         propagate the 'data' argument to copy_tree_r.
7918         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
7919         Propagate 'data' argument to walk_tree.
7920         (copy_if_shared): New function.
7921         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
7922         (unmark_visited): New function.
7923         (unshare_body): Call copy_if_shared instead of doing it manually.
7924         (unvisit_body): Call unmark_visited instead of doing it manually.
7925
7926 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
7927
7928         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
7929         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
7930         * hooks.c: Likewise.
7931         * target-def.h (TARGET_FOLD_BUILTIN): Define to
7932         hook_tree_tree_int_treep_bool_null.
7933         * target.h (struct gcc_target): Update signature of fold_builtin
7934         field.
7935         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
7936         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
7937         instead of the call expression.
7938         (fold_builtin_call_array): Pass n and argarray directly.
7939         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
7940         consing a list.
7941         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
7942         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
7943         `i' and use it in place of `arity'.
7944         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
7945         Dereference `args' directly.
7946         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
7947
7948 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7949
7950         * doc/sourcebuild.texi (Effective-Target Keywords): Document
7951         3dnow, sse3, sse2.
7952         (Directives): Document optional dg-require-effective-target
7953         selector.
7954
7955 2010-05-19  Richard Guenther  <rguenther@suse.de>
7956
7957         PR lto/44196
7958         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
7959
7960 2010-05-19  Richard Guenther  <rguenther@suse.de>
7961
7962         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
7963         * common.opt (fwhopr=): New.
7964         * opts.c (common_handle_option): Handle OPT_fwhopr.
7965         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
7966         * collect2.c (main): Match -fwhopr*.
7967         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
7968         Execute ltrans stage in parallel when jobs is bigger than 1.
7969
7970 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7971
7972         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
7973         pentiumpro on Solaris 8/x86 with Sun as.
7974         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
7975         hidden alias bug.
7976         (gcc_cv_as_ix86_quad): Check for .quad directive.
7977         * configure: Regenerate.
7978         * config.in: Regenerate.
7979         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
7980
7981 2010-05-19  Martin Jambor  <mjambor@suse.cz>
7982
7983         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
7984         also for indirect edges.  Actual printing moved...
7985         (ipa_print_node_jump_functions_for_edge): ...here.
7986         (ipa_compute_jump_functions): Renamed to
7987         ipa_compute_jump_functions_for_edge and made static.
7988         (ipa_compute_jump_functions): New function.
7989         (make_edge_direct_to_target): Check if the number of arguments on
7990         the newly direct edge is the same as the number of parametrs of
7991         the callee.
7992         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
7993         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
7994         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7995         analysis functions unconditionally, call the new
7996         ipa_analyze_params_uses on the node instead of every edge.
7997
7998 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
7999
8000         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8001         to tree.
8002         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
8003         also checks for a constant int vs.  non-constant but
8004         loop-invariant steps.
8005         (find_or_create_group): Change the sort algorithm to only consider
8006         steps that are constant ints.
8007         (idx_analyze_ref): Adopt code to handle a tree instead of a
8008         HOST_WIDE_INT for step.
8009         (gather_memory_references_ref): Handle tree instead of int and be
8010         prepared to see a NULL_TREE.
8011         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8012         prefetches if the step cannot be calculated at compile time.
8013         (issue_prefetch_ref): Issue prefetches for non-constant but
8014         loop-invariant steps.
8015
8016 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8017
8018         Revert:
8019         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8020
8021         * tree.h (build_call_list): Remove.
8022         * tree.c (build_call_list): Remove.
8023
8024 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8025
8026         * tree.h (build_call_list): Remove.
8027         * tree.c (build_call_list): Remove.
8028
8029 2010-05-18  Jan Hubicka  <jh@suse.cz>
8030
8031         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8032
8033 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
8034
8035         PR rtl-optimization/43332
8036         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8037
8038 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
8039
8040         * tree.h (build_int_cstu): Implement as static inline.
8041         * tree.c (build_int_cstu): Remove function.
8042         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8043         sign extended.
8044
8045 2010-05-18  Richard Guenther  <rguenther@suse.de>
8046
8047         PR lto/44143
8048         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
8049         (debug): Initialize from -save-temps.
8050         (collect_execute): Print command-line when verbose.
8051         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
8052         for ltrans invocation.  Produce -dumpbase flag again.
8053         (process_args): Remove.
8054         (main): Simplify.
8055         * collect2.c (maybe_run_lto_and_relink): Only pass object
8056         files to lto-wrapper.
8057         * gcc.c (LINK_COMMAND_SPEC): Likewise.
8058
8059 2010-05-18  Jan Hubicka  <jh@suse.cz>
8060
8061         * opts.c (decode_options): Do not disable whopr at ipa_cp.
8062         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8063
8064 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8065
8066         PR lto/44184
8067         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8068         in a GIMPLE_ASM.
8069         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8070         in a GIMPLE_ASM.
8071
8072 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
8073
8074         PR debug/41371
8075         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8076         rtx_equal_p inline.
8077
8078 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8079
8080         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8081         lto-macho as lto_binary_reader.
8082
8083         * darwin.c (darwin_asm_named_section): Do not add assembler comment
8084         after .section directive; just print it before the directive instead.
8085
8086 2010-05-17  Jan Hubicka  <jh@suse.cz>
8087
8088         * cgraph.c (cgraph_create_virtual_clone): Only check
8089         versionable_function_p when not in wpa and checking is enabled.
8090         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8091         there are no more functions to materialize.
8092
8093 2010-05-17  Jan Hubicka  <jh@suse.cz>
8094
8095         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8096         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8097         New functions.
8098         (output_cgraph): Call output_cgraph_opt_summary.
8099         (input_cgrpah): Call input_cgraph_opt_summary.
8100         (output_cgraph_opt_summary_p, output_node_opt_summary,
8101         input_node_opt_summary, input_cgraph_opt_section): New functions.
8102         * lto-section-in.c (lto_section_name): Add cgraphopt.
8103         * tree-inline.c (tree_function_versioning): Handle parm_num.
8104         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8105         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8106
8107 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8108
8109         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8110         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8111         the insn to prefetch ratio heuristic to loops with known trip count.
8112
8113 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8114
8115         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8116         (schedule_prefetches): Do not generate a prefetch if the unroll factor
8117         is far from what is required by the prefetch.
8118
8119 2010-05-17  Jan Hubicka  <jh@suse.cz>
8120
8121         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8122         (ipcp_estimate_growth): Likewise.
8123         (ipcp_const_param_count): Likewise.
8124         (ipcp_insert_stage): Likewise.
8125         * ipa-prop.c (visit_load_for_mod_analysis): New function.
8126         (visit_store_addr_for_mod_analysis): Set used flag.
8127         (ipa_detect_param_modifications): Set used flag for SSE params;
8128         update use of walk_stmt_load_store_addr_ops.
8129         (ipa_print_node_params): Print used flag.
8130         (ipa_write_node_info): Stream used flag.
8131         (ipa_read_node_info): Likewise.
8132         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8133         (ipa_is_param_used): New function.
8134         (lto_ipa_fixup_call_notes): Remove unused declaration.
8135
8136 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8137
8138         PR target/44074
8139         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8140         * configure: Regenerate.
8141         * config.in: Regenerate.
8142         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8143         !HAVE_AS_IX86_REP_LOCK_PREFIX.
8144         Don't emit whitespace.
8145         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8146         (*rep_movsi): Likewise.
8147         (*rep_movsi_rex64): Likewise.
8148         (*rep_movqi): Likewise.
8149         (*rep_movqi_rex64): Likewise.
8150         (*rep_stosdi_rex64): Likewise.
8151         (*rep_stossi): Likewise.
8152         (*rep_stossi_rex64): Likewise.
8153         (*rep_stosqi): Likewise.
8154         (*rep_stosqi_rex64): Likewise.
8155         (*cmpstrnqi_nz_1): Use {%;} after repz.
8156         (*cmpstrnqi_nz_rex_1): Likewise.
8157         (*cmpstrnqi_1): Likewise.
8158         (*cmpstrnqi_rex_1): Likewise.
8159         (*strlenqi_1): Use {%;} after repnz.
8160         (*strlenqi_rex_1): Likewise.
8161         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8162         (*sync_compare_and_swap<mode>): Likewise.
8163         (sync_double_compare_and_swap<mode>): Likewise.
8164         (*sync_double_compare_and_swapdi_pic): Likewise.
8165         (sync_old_add<mode>): Likewise.
8166         (sync_add<mode>): Likewise.
8167         (sync_sub<mode>): Likewise.
8168         (sync_<code><mode>): Likewise.
8169
8170 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8171
8172         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8173         otr_token and polymorphic.
8174         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8175         (cgraph_clone_edge): Copy the above fields.
8176         * tree.c (get_binfo_at_offset): New function.
8177         * tree.h (get_binfo_at_offset): Declare.
8178         * ipa-prop.h (enum jump_func_type): Added known_type jump function
8179         type, reordered items, updated comments.
8180         (union jump_func_value): Added base_type field, reordered fields.
8181         (enum ipa_lattice_type): Moved down in the file.
8182         (struct ipa_param_descriptor): New field polymorphic.
8183         (ipa_is_param_polymorphic): New function.
8184         * ipa-prop.c: Include gimple.h and gimple-fold.h.
8185         (ipa_print_node_jump_functions): Print known type jump functions.
8186         (compute_complex_pass_through): Renamed to...
8187         (compute_complex_assign_jump_func): this.
8188         (compute_complex_ancestor_jump_func): New function.
8189         (compute_known_type_jump_func): Likewise.
8190         (compute_scalar_jump_functions): Create known type and complex ancestor
8191         jump functions.
8192         (ipa_note_param_call): New parameter polymorphic, set the corresponding
8193         flag in the call note accordingly.
8194         (ipa_analyze_call_uses): Renamed to...
8195         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
8196         variable var only in the block where it is used.
8197         (ipa_analyze_virtual_call_uses): New function.
8198         (ipa_analyze_call_uses): Likewise.
8199         (combine_known_type_and_ancestor_jfs): Likewise.
8200         (update_jump_functions_after_inlining): Implemented handling of a
8201         number of new jump function types combination.
8202         (print_edge_addition_message): Removed.
8203         (make_edge_direct_to_target): New function.
8204         (try_make_edge_direct_simple_call): Likewise.
8205         (try_make_edge_direct_virtual_call): Likewise.
8206         (update_call_notes_after_inlining): Renamed to...
8207         (update_indirect_edges_after_inlining): this.  Moved edge creation for
8208         indirect calls to try_make_edge_direct_simple_call, also calls
8209         try_make_edge_direct_virtual_call for virtual calls.
8210         (ipa_print_node_params): Changed the header message.
8211         (ipa_write_jump_function): Stream also known type jump functions.
8212         (ipa_read_jump_function): Likewise.
8213         (ipa_write_indirect_edge_info): Stream new fields in
8214         cgraph_indirect_call_info.
8215         (ipa_read_indirect_edge_info): Likewise.
8216         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8217         GIMPLE_FOLD_H.
8218
8219 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8220
8221         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8222
8223 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8224
8225         * tree.h (CALL_EXPR_ARGS): Delete.
8226         (call_expr_arglist): Delete.
8227         * tree.c (call_expr_arglist): Delete.
8228         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8229         targetm.fold_builtin.
8230         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8231         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8232         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8233         arglist parameter.  Use CALL_EXPR_ARG.
8234         (picochip_expand_builtin_3op): Likewise.
8235         (picochip_expand_builtin_2opvoid): Likewise.
8236         (picochip_expand_array_get): Likewise.
8237         (picochip_expand_array_put): Likewise.
8238         (picochip_expand_array_testport): Likewise.
8239         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
8240         rather than arglist.
8241         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8242         CALL_EXPR_ARGS.
8243         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8244         than TREE_VALUE and TREE_CHAIN.
8245         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8246         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8247         the arglist.
8248
8249 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8250
8251         PR bootstrap/42347
8252         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8253         to have no fallthru edge.
8254
8255         PR middle-end/44102
8256         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8257         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8258         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8259         add BARRIER after previous bb if needed.
8260
8261 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8262
8263         * tree.c (build_function_type_list_1): Remove bogus assert condition.
8264
8265 2010-05-17  Alan Modra  <amodra@gmail.com>
8266
8267         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8268         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
8269         with copy_reg rtx param.
8270         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8271         Correct cases where code for ABI_V4 did not initialise the reg
8272         used to access frame.  Also leave frame_reg_rtx as sp for large
8273         frames that save no regs.
8274
8275 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8276
8277         PR middle-end/44133
8278         * tree-sra.c (create_access_replacement): New parameter rename, mark
8279         the replaement for renaming only when it is true.
8280         (get_access_replacement): Pass true in the rename parameter of
8281         create_access_replacement.
8282         (get_unrenamed_access_replacement): New function.
8283         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8284         replacement declaration from it.
8285
8286 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
8287
8288         * function.c (try_fit_stack_local, add_frame_space): New static
8289         functions.
8290         (assign_stack_local_1): Use them.  Look for opportunities to use
8291         space previously wasted on alignment.
8292         * function.h (struct frame_space): New.
8293         (struct rtl_data): Add FRAME_SPACE_LIST member.
8294         * reload1.c (something_was_spilled): New static variable.
8295         (alter_reg): Set it.
8296         (reload): Test it in addition to testing if the frame size changed.
8297
8298 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
8299
8300         * config/s390/s390.c: Define sane prefetch settings and activate
8301         flag_prefetch_loop_arrays on -O3.
8302         * config/s390/s390.h: Declare that read can use write prefetch.
8303
8304 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8305
8306         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8307         build.
8308
8309 2010-05-16  Jan Hubicka  <jh@suse.cz>
8310
8311         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8312         function body; do not check stdarg field of struct function.
8313
8314 2010-05-16  Jan Hubicka  <jh@suse.cz>
8315
8316         * cgraph.c (dump_cgraph_node): Dump versionable flag.
8317         * cgraph.h (cgraph_local_info): Add versionable flag.
8318         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8319         (ipcp_versionable_function_p): Use it.
8320         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8321         versionable flag.
8322
8323 2010-05-16  Jan Hubicka  <jh@suse.cz>
8324
8325         * cgraph.c (cgraph_clone_node): Take decl argument and insert
8326         clone into hash when it is different from orig.
8327         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8328         * cgraph.h (cgraph_clone_node): Update prototype.
8329         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8330         (lto_cgraph_encoder_delete): Delete body map.
8331         (lto_cgraph_encoder_size): Move to header.
8332         (lto_cgraph_encoder_encode_body_p,
8333         lto_set_cgraph_encoder_encode_body): New.
8334         (lto_output_node): Do not take written_decls argument; output clone_of
8335         pointer.
8336         (add_node_to): Add include_body_argument; call
8337         lto_set_cgraph_encoder_encode_body on master of the clone.
8338         (add_references): Update use of add_node_to.
8339         (compute_ltrans_boundary): Likewise.
8340         (output_cgraph): Do not create written_decls bitmap.
8341         (input_node): Take nodes argument; stream in clone_of correctly.
8342         (input_cgraph_1): Update use of input_node.
8343         * lto-streamer-out.c (lto_output): Use encoder info to decide
8344         what bodies to output.
8345         * ipa-inline.c (cgraph_clone_inlined_nodes,
8346         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
8347         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
8348         (lto_cgraph_encoder_size): Define here.
8349         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
8350         Declare.
8351
8352 2010-05-16  Richard Guenther  <rguenther@suse.de>
8353
8354         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
8355         -fipa-type-escape.
8356         * ipa-type-escape.c (gate_type_escape_vars): Run when
8357         -fipa-struct-reorg runs.
8358         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
8359         * common.opt (fipa-type-escape): Remove.
8360
8361 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8362
8363         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
8364         (decode_options): Likewise.
8365         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
8366
8367 2010-05-16  Jan Hubicka  <jh@suse.cz>
8368
8369         * ipa.c (function_and_variable_visibility): Also bring local all
8370         aliases.
8371
8372 2010-05-16  Richard Guenther  <rguenther@suse.de>
8373
8374         * alias.c (nonoverlapping_memrefs_p): Remove use of
8375         IPA type-escape information.
8376
8377 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
8378
8379         * c-common.c (c_common_reswords): Add _Static_assert for C.
8380         * c-parser.c (c_token_starts_declaration,
8381         c_parser_next_token_starts_declaration,
8382         c_parser_static_assert_declaration_no_semi,
8383         c_parser_static_assert_declaration): New.
8384         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
8385         Handle static assertions if static_assert_ok.
8386         (c_parser_external_declaration, c_parser_declaration_or_fndef,
8387         c_parser_compound_statement_nostart, c_parser_label,
8388         c_parser_for_statement, c_parser_objc_methodprotolist,
8389         c_parser_omp_for_loop): All callers of
8390         c_parser_declaration_or_fndef changed.
8391         (c_parser_struct_declaration): Handle static assertions.
8392         (c_parser_compound_statement_nostart): Use
8393         c_parser_next_token_starts_declaration and
8394         c_token_starts_declaration to detect start of declarations.
8395         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
8396         Likewise.
8397
8398 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
8399
8400         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8401         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8402         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8403         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8404         (mmix_function_outgoing_value): Rename to...
8405         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
8406         (mmix_function_value_regno_p): Make static.
8407         (mmix_libcall_value): New function.
8408         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
8409         mmix_function_value_regno_p): Remove declaration.
8410
8411 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8412
8413         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
8414         BUILT_IN_ALLOCA if stack checking is enabled.
8415
8416 2010-05-16  Richard Guenther  <rguenther@suse.de>
8417
8418         * var-tracking.c (vars_copy_1): Inline ...
8419         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
8420         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
8421         (variable_merge_over_cur): Adjust.  Merge asserts.
8422         (variable_merge_over_src): Likewise.
8423         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
8424         (variable_post_merge_new_vals): Merge asserts.
8425         (variable_post_merge_perm_vals): Likewise.
8426         (find_mem_expr_in_1pdv): Likewise.
8427         (dataflow_set_different_value): Remove.
8428         (onepart_variable_different_p): Merge asserts.
8429         (variable_different_p): Likewise.
8430         (dataflow_set_different_1): Inline ...
8431         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
8432         (emit_notes_for_differences_1): Merge asserts.
8433
8434 2010-05-16  Richard Guenther  <rguenther@suse.de>
8435
8436         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
8437         * optabs.c (libfunc_decl_hash): Likewise.
8438         * varasm.c (emutls_decl): Likewise.
8439
8440 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
8441
8442         * c-decl.c: Don't include gimple.h.
8443         (merge_decls): Do not copy gimple_body.
8444
8445 2010-05-15  Jason Merrill  <jason@redhat.com>
8446
8447         * c.opt: Add -fnothrow-opt.
8448
8449 2010-05-15  Jan Hubicka  <jh@suse.cz>
8450
8451         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
8452         analyzed.
8453         * passes.c (ipa_write_summaries): Write all analyzed nodes.
8454
8455 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
8456
8457         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
8458         * Makefile.in: Add it.
8459         Fix all other Makefile dependencies for changes below.
8460         * tree.h: Include it instead of defining VEC primitives here.
8461         * gimple.h: Likewise.
8462         * rtl.h: Likewise.
8463         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
8464         * except.h: Include vecir.h, break dependence on tree.h.
8465
8466         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
8467         Move from here...
8468         * tree-iterator.c: ...to here.
8469         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
8470
8471         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
8472         tm_p.h.
8473         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
8474         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
8475         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
8476         tree-mudflap.h, and target.h.
8477         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
8478         predict.h, tree-inline.h, gimple.h, and langhooks.h.
8479         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
8480         Add FIXME for why gimple.h is still included (should be unnecessary
8481         since GCC 4.5 gimplification unit-at-a-time).
8482         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
8483         * c-pragma.c: Add FIXME for why function.h needs to be included just
8484         for cfun, at front-end level.
8485         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
8486         Do not include ggc.h, but include vecprim.h for VEC(char).
8487         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
8488         Explain why target.h is included.
8489         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
8490         Explain why gimple.h is included.
8491         * c-ppoutput.c: Do not include tm.h.
8492         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
8493         * c-parses.c: Explain why rtl.h is included, and that this (and only
8494         this) is also why tm.h must be included.
8495         Do not include except.h.
8496         * c-lang.c: Do not include ggc.h.
8497
8498 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
8499
8500         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
8501
8502 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
8503
8504         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
8505         unions by default if those structs and unions have no tags.  Do
8506         not condition anonymous struct and unions handling on flag_iso.
8507         Allow anonymous structs and unions for C1X.
8508         (finish_struct): Do not diagnose lack of named fields when
8509         anonymous structs and unions present for C1X.  Accept flexible
8510         array members in structure with anonymous structs or unions but no
8511         directly named fields.
8512         * doc/extend.texi (Unnamed Fields): Update.
8513
8514 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
8515
8516         * gimple.h (compare_field_offset): Rename into...
8517         (gimple_compare_field_offset): ...this.
8518         * gimple.c (compare_field_offset): Rename into...
8519         (gimple_compare_field_offset): ...this.  Compare the full access if
8520         the offset is self-referential.
8521         (gimple_types_compatible_p): Adjust for above renaming.
8522         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
8523         DECL_NONADDRESSABLE_P flag of fields before merging them.
8524
8525 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
8526
8527         * tree.h (ctor_to_list): Delete.
8528         * tree.c (ctor_to_list): Delete.
8529
8530 2010-05-15  Jan Hubicka  <jh@suse.cz>
8531
8532         * ipa-reference.c: Include toplev.h
8533         (is_proper_for_analysis): Only add to all_module_statics
8534         if it is allocated.
8535         (write_node_summary_p, stream_out_bitmap,
8536         ipa_reference_write_optimization_summary,
8537         ipa_reference_read_optimization_summary): New.
8538         (struct ipa_opt_pass_d pass_ipa_reference): Add
8539         optimization summary streaming.
8540         * lto-cgraph.c (referenced_from_this_partition_p,
8541         reachable_from_this_partition_p): New functions.
8542         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8543         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
8544         * opts.c (decode_options): Enable ipa_reference.
8545         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
8546         * lto-streamer.h (referenced_from_this_partition_p,
8547         reachable_from_this_partition_p): Declare.
8548
8549 2010-05-15  Richard Guenther  <rguenther@suse.de>
8550
8551         PR tree-optimization/44038
8552         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
8553         taking the address of a V_C_E of a constant.
8554
8555 2010-05-14  Jan Hubicka  <jh@suse.cz>
8556
8557         * tree.h (memory_identifier_string): Remove.
8558         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
8559         (ipa_reference_global_vars_info_d): Remove statics_not_read and
8560         statics_not_written.
8561         (ipa_reference_optimization_summary_d): New structure.
8562         (ipa_reference_optimization_summary_t): New type and vector.
8563         (ipa_reference_vars_info_d): Embedd structures instead of using
8564         pointers.
8565         (reference_vars_to_consider): Remove out of GGC space.
8566         (module_statics_escape): Remove.
8567         (global_info_obstack): Rename to ...
8568         (optimization_summary_obstack): ... this one.
8569         (initialization_status_t): Remove.
8570         (memory_identifier_string): Remove.
8571         (get_reference_vars_info): Fix indenting.
8572         (set_reference_vars_info): Likewise.
8573         (get_reference_optimization_summary): New.
8574         (set_reference_optimization_summary): New.
8575         (get_global_reference_vars_info): Remove.
8576         (ipa_reference_get_read_global): Remove.
8577         (ipa_reference_get_written_global): Remove.
8578         (ipa_reference_get_not_read_global): Update.
8579         (ipa_reference_get_not_written_global): Update.
8580         (is_proper_for_analysis): Outlaw addressable.
8581         (propagate_bits): Update for new datastructures.
8582         (analyze_variable): Remove.
8583         (init_function_info): Update for new datastructures.
8584         (clean_function_local_data): Remove.
8585         (clean_function): Remove.
8586         (copy_global_bitmap): Use optimizations_summary_obstack.
8587         (duplicate_node_data): Duplicate optimization summary only.
8588         (remove_node_data): Remove optimization summary only.
8589         (generate_summary): Do not analyze variables; do not compute
8590         module_statics_escape; do not prune solutions by it.
8591         (read_write_all_from_decl): Fix typos in comments.
8592         (propagate): Doscover readonly and nonaddressable first;
8593         update for new datastructures; share global bitmaps.
8594         * ipa-reference.h (ipa_reference_get_read_global,
8595         ipa_reference_get_written_global): Remove.
8596         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
8597         * Makefile.in: Remove ipa-refereference from GT files.
8598
8599 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8600
8601         PR debug/44112
8602         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
8603         for all SYMBOL_REF_DECLs.
8604
8605 2010-05-14  Jan Hubicka  <jh@suse.cz>
8606
8607         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
8608         (varpool_all_refs_explicit_p): New inline function.
8609         * ipa-reference.c: Update comment.
8610         (module_statics_written): Remove.
8611         (get_static_decl): Remove.
8612         (ipa_init): Do not initialize module_statics_written.
8613         (analyze_function): Likewise.
8614         (generate_summary): Likewise; do not compute module_statics_readonly
8615         and do not update variable flags.
8616         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
8617         * ipa.c: Inlucde flags.h
8618         (cgraph_local_node_p): New.
8619         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
8620         promote functions to local.
8621         (ipa_discover_readonly_nonaddressable_vars): New function.
8622         (function_and_variable_visibility): Use cgraph_local_node_p.
8623         * varpool.c (varpool_finalize_decl): Set force_output for
8624         DECL_PRESERVE_P vars.
8625
8626 2010-05-14  Jan Hubicka  <jh@suse.cz>
8627
8628         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
8629
8630 2010-05-14  Richard Guenther  <rguenther@suse.de>
8631
8632         PR tree-optimization/44119
8633         * tree-ssa-pre.c (eliminate): Properly mark replacement of
8634         a PHI node necessary.
8635
8636 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8637
8638         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
8639
8640 2010-05-14  Jason Merrill  <jason@redhat.com>
8641
8642         PR c++/44127
8643         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
8644         (gimple_call_set_nothrow): New.
8645         * gimple.c (gimple_build_call_from_tree): Call it.
8646         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
8647
8648         PR c++/44127
8649         * gimplify.c (gimplify_seq_add_stmt): No longer static.
8650         * gimple.h: Declare it.
8651         * gimple.c (gimple_build_eh_filter): No ops.
8652
8653 2010-05-14  Jan Hubicka  <jh@suse.cz>
8654
8655         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
8656         nodes already in queue.
8657         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
8658         re-enqueueing node.
8659
8660 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8661
8662         PR debug/44136
8663         * cfgexpand.c (expand_debug_expr): If non-memory op0
8664         has BLKmode, return NULL.
8665
8666 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
8667
8668         * config.gcc: Add support for --with-cpu option for bdver1.
8669         * config/i386/i386.h (TARGET_BDVER1): New macro.
8670         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
8671         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8672         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
8673         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8674         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
8675         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
8676         (processor_type): Add PROCESSOR_BDVER1.
8677         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
8678         processor_type in config/i386/i386.h.
8679         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
8680         movaps <reg, reg> instead of movapd <reg, reg> when replacing
8681         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
8682         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
8683         to emit packed xor instead of packed double/packed integer
8684         xor for SSE and AVX when moving a zero value.
8685         * config/i386/sse.md: Add check for
8686         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
8687         movapd/movdqa for SSE and AVX.
8688         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
8689         single logical operations i.e and, or and xor instead of packed double
8690         logical operations for SSE and AVX.
8691         * config/i386/i386-c.c (ix86_target_macros_internal):
8692         Add PROCESSOR_BDVER1.
8693         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
8694         (has_fma4, has_xop): New.
8695         * config/i386/i386.c (bdver1_cost): New variable.
8696         (m_BDVER1): New macro.
8697         (m_AMD_MULTIPLE): Add m_BDVER1.
8698         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
8699         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
8700         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
8701         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
8702         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
8703         x86_tune_sse_partial_reg_dependency,
8704         x86_tune_sse_unaligned_load_optimal,
8705         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
8706         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
8707         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
8708         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
8709         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
8710         Enable/disable for bdver1.
8711         (processor_target_table): Add bdver1_cost.
8712         (cpu_names): Add bdver1.
8713         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
8714          processor_alias_table.
8715         (ix86_expand_vector_move_misalign): Change.
8716         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
8717         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
8718         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
8719         of movupd/movdqu for SSE and AVX.
8720         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
8721         (ix86_tune_adjust_cost): Add code for bdver1.
8722         (standard_sse_constant_opcode): Add check for
8723         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
8724         of packed double xor for SSE and AVX.
8725
8726 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
8727
8728         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
8729         result to unsigned.
8730
8731 2010-05-14  Tristan Gingold  <gingold@adacore.com>
8732
8733         * toplev.c (default_debug_hooks): Remove this variable.
8734         (process_options): Remove assignments to default_debug_hooks.
8735
8736 2010-05-14  Martin Jambor  <mjambor@suse.cz>
8737
8738         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
8739         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
8740         * langhooks.h (struct lang_hooks_for_decls): Removed field
8741         fold_obj_type_ref.
8742         * tree.c (free_lang_data): Remove assignment to
8743         lang_hooks.fold_obj_type_ref.
8744         * tree.def (OBJ_TYPE_REF): Update comment.
8745
8746 2010-05-14  Richard Guenther  <rguenther@suse.de>
8747
8748         PR tree-optimization/44124
8749         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
8750
8751 2010-05-14  Alan Modra  <amodra@gmail.com>
8752
8753         PR target/44075
8754         * config/rs6000/rs6000.c (struct machine_function): Reorder
8755         fields for better packing.  Add lr_save_state.
8756         (rs6000_ra_ever_killed): Return lr_save_state if set.
8757         (rs6000_emit_eh_reg_restore): Set lr_save_state.
8758
8759 2010-05-13  Jan Hubicka  <jh@suse.cz>
8760
8761         * varpool.c (decide_is_variable_needed): Drop code checking
8762         TREE_SYMBOL_REFERENCED.
8763
8764 2010-05-13  Jan Hubicka  <jh@suse.cz>
8765
8766         * final.c (output_addr_const): Do not call mark_decl_referenced.
8767         * cgraphunit.c (process_function_and_variable_attributes): Use
8768         mark_needed_node dirrectly.
8769         (assemble_thunk): Do not call mark_decl_referenced.
8770
8771 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
8772
8773         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
8774
8775 2010-05-13  Jeff Law  <law@redhat.com>
8776
8777         * ira-conflicts.c (print_allocno_conflicts): New function broken out
8778         from...
8779         (print_conflicts): Call print_allocno_conflicts.
8780
8781 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
8782
8783         PR debug/44104
8784         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
8785         if it is NULL.
8786
8787 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
8788
8789         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
8790         t-mingw-w64 or t-mingw-w32 for multilib configuration.
8791         * config/i386/t-mingw-w32: New.
8792         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
8793
8794 2010-05-13  Martin Jambor  <mjambor@suse.cz>
8795
8796         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
8797         gimple-fold.c).
8798         * gimple-fold.c (get_base_binfo_for_type): New function.
8799         (gimple_get_relevant_ref_binfo): Likewise.
8800         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8801         (gimple_fold_obj_type_ref): Likewise.
8802         (fold_gimple_call): Simplify condition for folding virtual calls
8803         and call gimple_fold_obj_type_ref.
8804         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
8805         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8806
8807 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
8808
8809         * config/rs6000/rs6000-protos.h
8810         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
8811         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
8812         (rs6000_debug_mode_dependent_address)
8813         (rs6000_mode_dependent_address_ptr): Likewise.
8814
8815 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
8816
8817         PR debug/43983
8818         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
8819         by SRA.
8820         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
8821         * tree-sra.c (create_access_replacement): Call unshare_expr before
8822         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
8823         * dwarf2out.c: Include tree-flow.h.
8824         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
8825         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
8826         Handle DW_OP_bit_piece.
8827         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
8828         construct_piece_list, adjust_piece_list): New functions.
8829         (add_var_loc_to_decl): Handle SRA optimized variables.
8830         Adjust for var_loc_note to loc field renaming.
8831         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
8832         in VAR_LOCATION note.
8833         (new_loc_descr_op_bit_piece): New function.
8834         (dw_sra_loc_expr): New function.
8835         (dw_loc_list): Use it.  Don't handle the last range after the
8836         loop, handle it inside of the loop.  Adjust for var_loc_note
8837         to loc field renaming.
8838         (add_location_or_const_value_attribute): Only special case
8839         single entry loc lists if loc is NOTE_P.  Adjust for
8840         var_loc_note to loc field renaming.
8841         (dwarf2out_var_location): Don't set newloc->var_loc_note
8842         and newloc->next here.
8843
8844 2010-05-12  Jan Hubicka  <jh@suse.cz>
8845
8846         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
8847         flag.
8848         * cgraph.h (cgraph_only_called_directly_p,
8849         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
8850         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
8851         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
8852         (assemble
8853         * ipa.c (cgraph_remove_unreachable_nodes): Use
8854         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
8855         flags.
8856         * tree-inline.c (copy_bb): Check address_taken flag.
8857         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
8858         externally_visible flag.
8859
8860 2010-05-12  Jason Merrill  <jason@redhat.com>
8861
8862         PR bootstrap/44048
8863         PR target/44099
8864         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
8865         * sdbout.c (plain_type_1): Likewise.
8866         * dwarf2out.c (is_base_type): Likewise.
8867         (gen_type_die_with_usage): Likewise.  Generate
8868         DW_TAG_unspecified_type for any LANG_TYPE.
8869
8870 2010-05-12  Jan Hubicka  <jh@suse.cz>
8871
8872         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
8873         indrect edges too.
8874         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
8875         (cgraph_clone_edge): Update.
8876         (cgraph_node_remove_callees): Remove indirect calls too.
8877         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
8878         (cgraph_create_indirect_edge): Update prototype.
8879         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
8880         is_proper_for_analysis.
8881         (add_new_function, visited_nodes, function_insertion_hook_holder,
8882         get_local_reference_vars_info, mark_address_taken, mark_address,
8883         mark_load, mark_store, check_asm_memory_clobber, check_call,
8884         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
8885         (ipa_init): Do not initialize visited_nodes;
8886         function_insertion_hook_holder.
8887         (analyze_variable): Rewrite.
8888         (analyze_function): Rewrite.
8889         (copy_local_bitmap): Remove.
8890         (duplicate_node_dat): Do not duplicate local info.
8891         (generate_summary): Simplify to only walk cgraph.
8892         (write_node_summary_p, ipa_reference_write_summary,
8893         ipa_reference_read_summary): Remove.
8894         (propagate): Do not remove function insertion;
8895         generate summary.
8896         (pass_ipa_reference): NULLify summary handling fields.
8897         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
8898         (input_edge): Input ecf_flags.
8899         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
8900         (update_indirect_edges_after_inlining): Ignore edges with unknown
8901         param.
8902
8903 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
8904
8905         * implicit-zee.c: New file.
8906         * tree-pass.h (pass_implicit_zee): Declare.
8907         * passes.c (init_optimization_passes): Add zee pass.
8908         * common.opt (fzee): New flag.
8909         * timevar.def (TV_ZEE): Define.
8910         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
8911         and beyond.
8912         * Makefile.in (implicit-zee.o): Add new build file.
8913
8914 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8915             Nathan Froyd  <froydnj@codesourcery.com>
8916
8917         * c-common.c (sync_resolve_params): Remove write-only variable.
8918
8919 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
8920
8921         * target.h (struct gcc_target): Add mode_dependent_address_p field.
8922         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
8923         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
8924         * targhooks.c (default_mode_dependent_address_p): New function.
8925         * targhooks.h (default_mode_dependent_address_p): Declare function.
8926         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
8927         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
8928         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
8929         target hook. Change return type to bool.
8930         * recog.h (mode_dependent_address_p): Change return type to bool.
8931
8932 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8933             Nathan Froyd  <froydnj@codesourcery.com>
8934
8935         * tree-mudflap.c (build_function_type_0, build_function_type_1,
8936         build_function_type_2, build_function_type_3): Remove.
8937         (mudflap_init): Use build_function_type_list.
8938
8939 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8940             Nathan Froyd  <froydnj@codesourcery.com>
8941
8942         * coverage.c (build_fn_info_value): Call build_constructor instead of
8943         build_constructor_from_list.
8944         (build_ctr_info_value): Likewise.
8945         (build_gcov_info): Likewise.
8946
8947 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
8948
8949         * tree.c (build_constructor): Compute TREE_CONSTANT for the
8950         resultant constructor.
8951         (build_constructor_single): Don't set TREE_CONSTANT.
8952         (build_constructor_from_list): Don't compute TREE_CONSTANT.
8953
8954 2010-05-12  Jan Hubicka  <jh@suse.cz>
8955
8956         * cgraph.h (struct varpool_node): Add aux.
8957         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
8958         * varpool.c (varpool_remove_node): Do not remove initializer.
8959         (varpool_reset_queue): Export.
8960         (varpool_finalize_decl): Volatile vars are forced to be output.
8961         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
8962         replaced decl.
8963         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
8964         process_references, varpool_can_remove_if_no_refs): New functions.
8965         (cgraph_remove_unreachable_nodes): Handle variables too.
8966
8967 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8968
8969         PR target/44088
8970         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
8971
8972 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
8973
8974         PR middle-end/44085
8975         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
8976         change value of ORT_TASK.
8977         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
8978         (omp_notice_threadprivate_variable): New function.
8979         (omp_notice_variable): Call it for threadprivate variables.
8980         If enclosing ctx is a task, print enclosing task rather than
8981         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
8982         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
8983         if task has untied clause.
8984
8985         PR debug/42278
8986         * dwarf2out.c (base_type_die): Don't add name attribute here.
8987         (modified_type_die): Instead of sizetype use
8988         its underlying original type.  If a DW_TAG_base_type doesn't
8989         have name added, add __unknown__.
8990         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
8991         always call force_type_die instead.
8992
8993 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
8994
8995         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
8996         for __stack_chk_guard.
8997
8998 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
8999
9000         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9001         don't call start_source_file debug hook here...
9002         (finish_options): ... but here, after outputting predefined and
9003         command line defines and undefs.
9004
9005         PR middle-end/44071
9006         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9007         no fallthru edge.
9008         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9009         optimizing away empty bb with no successors, move over its
9010         footer chain to fallthru predecessor.
9011         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9012         (rtl_split_edge): For asm goto call patch_jump_insn even if
9013         splitting fallthru edge.
9014
9015         PR c++/44059
9016         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9017         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9018         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9019         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9020         on DW.ref.* decls.
9021
9022         PR c++/44062
9023         * c-parser.c (c_parser_expression): Mark LHS of a comma
9024         expression as read if it is a decl, handled component or
9025         COMPOUND_EXPR with that on the RHS.
9026         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9027         if it is a decl or handled component.
9028
9029 2010-05-11  Jan Hubicka  <jh@suse.cz>
9030
9031         * lto-symtab.c (lto_symtab_free): New function.
9032         * lto-streamer.h (lto_symtab_free): Declare.
9033
9034 2010-05-11  Jan Hubicka  <jh@suse.cz>
9035
9036         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9037         that if function is needed it is reachable.
9038         (lto_output_node): See if it the function is reachable or referenced.
9039         (output_cgraph): Update call of lto_output_node.
9040         * lto-streamer.h (reachable_from_other_partition_p): Declare.
9041
9042 2010-05-11  Jan Hubicka  <jh@suse.cz>
9043
9044         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9045         Mark as used.
9046
9047 2010-05-11  Jan Hubicka  <jh@suse.cz>
9048
9049         PR tree-optimize/44063
9050         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9051         queue.
9052         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9053         limits.
9054         (estimate_function_body_sizes): Compute sizes even when disregarding.
9055
9056 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
9057
9058         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9059
9060 2010-05-11  Jan Hubicka  <jh@suse.cz>
9061
9062         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9063         into every boundary.
9064
9065 2010-05-11  Jan Hubicka  <jh@suse.cz>
9066
9067         * matrix-reorg.c (matrix_reorg): Rebuild edges.
9068
9069 2010-05-11  Jan Hubicka  <jh@suse.cz>
9070
9071         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9072         lto_streamer_cache_delete): Put nodes into heap.
9073         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9074         heap.
9075
9076 2010-05-11  Jan Hubicka  <jh@suse.cz>
9077
9078         * cgraphbuild.c (cgraph_rebuild_references): New.
9079         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9080         out extern inlines.
9081         * cgraph.h (cgraph_rebuild_references): Declare.
9082         * tree-inline.c (tree_function_versioning): Use it.
9083         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9084
9085 2010-05-11  Jan Hubicka  <jh@suse.cz>
9086
9087         * cgraph.c: Include ipa-utils.h
9088         (cgraph_create_virtual_clone): Update references.
9089         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9090
9091 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9092
9093         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9094         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9095         cache size.
9096
9097 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9098
9099         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9100
9101 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9102
9103         * gcc.c (execute): For -### don't quote arguments that
9104         contain just alphanumerics and _/-. characters.
9105         * doc/invoke.texi: Document that change for -###.
9106
9107         PR debug/44023
9108         * df-problems.c (struct dead_debug): Add to_rescan field.
9109         (dead_debug_init): Clear to_rescan field.
9110         (dead_debug_finish): Rescan all debug insns in to_rescan
9111         bitmap and free the bitmap.
9112         (dead_debug_insert_before): Instead of rescanning debug insns
9113         immediately queue their rescanning until dead_debug_finish.
9114         (df_note_bb_compute): After dead_debug_add do continue instead
9115         of break.
9116
9117 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
9118
9119         PR debug/44028
9120         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9121         clear also INSN_REG_USE_LIST.
9122
9123 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9124
9125         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9126
9127 2010-05-10  Jan Hubicka  <jh@suse.cz>
9128
9129         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9130         commited change.
9131
9132 2010-05-10  Jan Hubicka  <jh@suse.cz>
9133
9134         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9135         Allocate encoders.
9136         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9137         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9138         (lto_streamer_cache_create): Init alloc pool.
9139         (lto_streamer_cache_delete): Free alloc pool.
9140         * lto-streamer.h: Include alloc pool.
9141         (lto_streamer_cache_d): Use alloc pool.
9142         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9143
9144 2010-05-10  Jan Hubicka  <jh@suse.cz>
9145
9146         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9147         * cgraphbuild.c: Include except.h
9148         (record_type_list, record_eh_tables): New function.
9149         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9150
9151 2010-05-10  Jan Hubicka  <jh@suse.cz>
9152
9153         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9154         __frame_dummy_init_array_entry, force_to_data): Attribute as used
9155         rather than unused.
9156
9157 2010-05-10  Michael Matz  <matz@suse.de>
9158
9159         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9160         (can_reassociate_p): Use FLOAT_TYPE_P.
9161         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9162         (vect_force_simple_reduction): ... this.
9163         * tree-parloops.c (gather_scalar_reductions): Use
9164         vect_force_simple_reduction.
9165         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9166         vect_is_simple_reduction, add modify argument, if true rewrite
9167         "a-b" into "a+(-b)".
9168         (vect_is_simple_reduction, vect_force_simple_reduction): New
9169         functions.
9170         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9171
9172 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9173             Vladimir Makarov  <vmakarov@redhat.com>
9174
9175         PR rtl-optimization/44012
9176         * ira-build.c (remove_unnecessary_allocnos): Nullify
9177         regno_allocno_map of the removed allocno.
9178
9179 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9180
9181         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9182         to /dev/null.
9183         * configure: Regenerate.
9184
9185 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9186
9187         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9188         unused.
9189         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9190         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9191         support in Sun ld.
9192         * configure: Regenerate.
9193
9194 2010-05-10  Richard Guenther  <rguenther@suse.de>
9195
9196         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9197         marked if the entry identifier is marked.
9198
9199 2010-05-10  Richard Guenther  <rguenther@suse.de>
9200
9201         * c-common.c (struct c_common_attributes): Add fnspec attribute.
9202         (handle_fnspec_attribute): New function.
9203         * gimple.h (gimple_call_return_flags): Declare.
9204         (gimple_call_arg_flags): Likewise.
9205         * gimple.c (gimple_call_arg_flags): New function.
9206         (gimple_call_return_flags): Likewise.
9207         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9208         New argument flags.
9209         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9210         return value flags.
9211         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9212         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9213         main work to ...
9214         (make_heapvar_for): ... this new function.
9215         (handle_rhs_call): Handle fnspec attribute argument specifiers.
9216         (handle_lhs_call): Likewise.
9217         (find_func_aliases): Adjust.
9218
9219 2010-05-10  Richard Guenther  <rguenther@suse.de>
9220
9221         PR tree-optimization/44050
9222         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9223
9224 2010-05-10  Wei Guozhi  <carrot@google.com>
9225
9226         PR target/42879
9227         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9228
9229 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9230
9231         PR c/10676
9232         * c-typeck.c (lookup_field): Take a type directly.  Update
9233         recursive calls.
9234         (build_component_ref): Update call to lookup_field.
9235         (set_init_label): Use lookup_field to find initialized field.
9236         Handle returned list of fields like a sequence of designators.
9237
9238 2010-05-09  Richard Guenther  <rguenther@suse.de>
9239
9240         PR middle-end/44024
9241         * fold-const.c (tree_single_nonzero_warnv_p): Properly
9242         handle &FUNCTION_DECL.
9243
9244 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9245
9246         PR c/4784
9247         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
9248         structures and unions recursively.
9249         (detect_field_duplicates): Move duplicate detection with a hash to
9250         detect_field_duplicates_hash.  Always use a hash if anonymous
9251         structures or unions are present.
9252         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9253         give errors.
9254
9255 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9256
9257         PR target/44046
9258         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9259         detect Atom, Core 2 and Core i7.
9260
9261 2010-05-09  Richard Guenther  <rguenther@suse.de>
9262
9263         * gcc.c (store_arg): Handle temporary file deletion for
9264         joined arguments.
9265
9266 2010-05-09  Richard Guenther  <rguenther@suse.de>
9267
9268         PR middle-end/44043
9269         * ipa-inline.c (estimate_function_body_sizes): Return after
9270         disregarding inline limits.
9271
9272 2010-05-09  Richard Guenther  <rguenther@suse.de>
9273
9274         * gcc.c (store_arg): Revert last change.
9275
9276 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9277
9278         PR middle-end/28685
9279         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9280         (optimize_ops_list): Call it.
9281
9282 2010-05-08  Richard Guenther  <rguenther@suse.de>
9283
9284         PR tree-optimization/44030
9285         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
9286         NECESSARY flag if we propagate from a inserted expression.
9287
9288 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9289
9290         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9291         domain types as equal if they are both PLACEHOLDER_EXPRs.
9292
9293 2010-05-08  Richard Guenther  <rguenther@suse.de>
9294
9295         * lto-wrapper.c (run_gcc): Remove linker output from
9296         command line for LTRANS invocation.
9297
9298 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9299
9300         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9301         lto-macho as lto_binary_reader.
9302         * target.h (struct gcc_target): New hooks lto_start and lto_end.
9303         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9304         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9305         in lto_start and lto_end calls.
9306         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
9307         magic numbers.
9308         (scan_prog_file): Update is_elf_or_coff call.
9309         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9310
9311         * collect2.c (main): Fix enum comparison.
9312
9313         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9314         Add prototypes.
9315         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9316         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
9317         and TARGET_ASM_LTO_END.
9318         * darwin.c: Include obstack.h and lto-streamer.h.
9319         (lto_section_names_offset, lto_section_names_obstack,
9320         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9321         global variables.
9322         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9323         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
9324         to a temporary file.
9325         (darwin_asm_lto_end): New function.  Restore asm_out_file.
9326         (darwin_asm_named_section): For LTO sections, replace the name with
9327         the offset of the section name in a string table, and build this
9328         table.
9329         (darwin_file_start): Initialize global vars for LTO support.
9330         (darwin_file_end): If output to asm_out_file was redirected, append it
9331         to the proper asm_out_file here.  Add the section names section.
9332
9333 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9334
9335         * c-pragma.c (pending_weak_d, pending_weak): New.
9336         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
9337         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
9338         handle_pragma_weak): Update the uses of pending_weaks.
9339
9340 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9341
9342         PR documentation/44016
9343         * doc/standards.texi (Standards): Link to unversioned
9344         cxx0x_status.html page.
9345
9346 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
9347
9348         PR target/43708
9349         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
9350         in addition to TREE_USED, to avoid "set but unused" warnings.
9351
9352 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9353
9354         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
9355         (is_loop_prefetching_profitable): Do not insert prefetches
9356         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
9357         times the prefetch ahead distance.
9358
9359 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9360
9361         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
9362         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
9363         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
9364         the unroll_factor.
9365
9366 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9367
9368         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
9369         a diagnostic info when the insn-to-mem ratio is too small.
9370
9371 2010-05-07  Richard Guenther  <rguenther@suse.de>
9372
9373         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
9374         the linker plugin.
9375         (store_arg): Queue temp_filename for deletion instead of
9376         the whole argument.
9377
9378 2010-05-07  Richard Guenther  <rguenther@suse.de>
9379
9380         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
9381         (run_gcc): Handle LTRANS phase invocation.
9382         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
9383
9384 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
9385
9386         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
9387         this is also meaningful on PARM_DECLs and RESULT_DECLs.
9388
9389 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9390
9391         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
9392
9393 2010-05-07  Richard Guenther  <rguenther@suse.de>
9394
9395         PR tree-optimization/44020
9396         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
9397         code when PRE is not yet initialized.
9398
9399 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9400
9401         * config/mips/dbxmdebug.h: Remove.
9402         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
9403
9404 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
9405
9406         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
9407         with null pointer and also warn about ordered comparison of zero with
9408         pointer if -Wextra.
9409
9410 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9411
9412         * graphite-blocking.c
9413         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
9414         * graphite-clast-to-gimple.c
9415         (clast_to_gcc_expression): Same.
9416         (precision_for_value): Same.
9417         (precision_for_interval): Same.
9418         (gcc_type_for_interval): Same.
9419         (graphite_create_new_guard): Same.
9420         (compute_bounds_for_level): Same.
9421         (graphite_create_new_loop_guard): Same.
9422         * graphite-interchange.c
9423         (build_linearized_memory_access): Same.
9424         (pdr_stride_in_loop): Same.
9425         (memory_strides_in_loop_1): Same.
9426         (memory_strides_in_loop): Same.
9427         (extend_scattering): Same.
9428         (psct_scattering_dim_for_loop_depth): Same.
9429         (pbb_number_of_iterations): Same.
9430         * graphite-poly.h
9431         (debug_iteration_domains): Same.
9432         * graphite-ppl.c
9433         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9434         (ppl_set_inhomogeneous_gmp): Same.
9435         (ppl_strip_loop): Same.
9436         (ppl_lexico_compare_linear_expressions): Same.
9437         (ppl_read_polyhedron_matrix): Same.
9438         (ppl_max_for_le_pointset): Same.
9439         * graphite-ppl.h
9440         (ppl_read_polyhedron_matrix): Same.
9441         (tree_int_to_gmp): Same.
9442         (gmp_cst_to_tree): Same.
9443         (ppl_set_inhomogeneous): Same.
9444         (ppl_set_inhomogeneous_tree): Same.
9445         (ppl_set_coef): Same.
9446         (ppl_set_coef_tree): Same.
9447         * graphite-sese-to-poly.c
9448         (build_pbb_scattering_polyhedrons): Same.
9449         (build_scop_scattering): Same.
9450         (scan_tree_for_params_right_scev): Same.
9451         (scan_tree_for_params): Same.
9452         (find_params_in_bb): Same.
9453         (find_scop_parameters): Same.
9454         (add_upper_bounds_from_estimated_nit): Same.
9455         (build_loop_iteration_domains): Same.
9456         (add_condition_to_domain): Same.
9457         (pdr_add_memory_accesses): Same.
9458
9459 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9460
9461         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
9462         CLooG's value_* macros to their respective mpz_* counterparts.
9463         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
9464         (graphite_create_new_loop_guard): Same.
9465         * graphite-interchange.c (build_linearized_memory_access): Same.
9466         (pdr_stride_in_loop): Same.
9467         (memory_strides_in_loop_1): Same.
9468         (1st_interchange_profitable_p): Same.
9469         * graphite-poly.c (extend_scattering): Same.
9470         (psct_scattering_dim_for_loop_depth): Same.
9471         (pbb_number_of_iterations): Same.
9472         (pbb_number_of_iterations_at_time): Same.
9473         * graphite-poly.h (new_1st_loop): Same.
9474         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
9475         (oppose_constraint): Same.
9476         (insert_constraint_into_matrix): Same.
9477         (ppl_set_inhomogeneous_gmp): Same.
9478         (ppl_set_coef_gmp): Same.
9479         (ppl_strip_loop): Same.
9480         (ppl_lexico_compare_linear_expressions): Same.
9481         (ppl_max_for_le_pointset): Same.
9482         (ppl_min_for_le_pointset): Same.
9483         (ppl_build_realtion): Same.
9484         * graphite-ppl.h (gmp_cst_to_tree): Same.
9485         (ppl_set_inhomogeneous): Same.
9486         (ppl_set_inhomogeneous_tree): Same.
9487         (ppl_set_coef): Same.
9488         (ppl_set_coef_tree): Same.
9489         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9490         (build_scop_scattering): Same.
9491         (add_value_to_dim): Same.
9492         (scan_tree_for_params_right_scev): Same.
9493         (scan_tree_for_params_int): Same.
9494         (scan_tree_for_params): Same.
9495         (find_params_in_bb): Same.
9496         (find_scop_parameters): Same.
9497         (add_upper_bounds_from_estimated_nit): Same.
9498         (build_loop_iteration_domains): Same.
9499         (create_linear_expr_from_tree): Same.
9500         (add_condition_to_domain): Same.
9501         (pdr_add_memory_accesses): Same.
9502
9503 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
9504             Jason Merrill  <jason@redhat.com>
9505
9506         * c-common.c (c_common_reswords): Add nullptr.
9507         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
9508         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
9509         (gen_type_die_with_usage): Likewise.
9510         * dbxout.c (dbxout_type): Likewise.
9511         * sdbout.c (plain_type_1): Likewise.
9512
9513 2010-05-06  Jason Merrill  <jason@redhat.com>
9514
9515         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
9516         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
9517         ret appropriately.
9518         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
9519
9520         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
9521         stripping WITH_SIZE_EXPR.
9522         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
9523         change.
9524
9525 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9526
9527         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
9528         list of obsolete configurations.
9529         Disabled check for obsolete configurations.
9530         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
9531         Removed support for previous versions.
9532         * config/mips/iris.h: Removed.
9533         * config/mips/iris5.h: Removed.
9534         * config/mips/iris6.h: Merged old iris.h contents.
9535         (TARGET_IRIX): Removed.
9536         (DRIVER_SELF_SPECS): Removed mabi=32.
9537         (IDENT_ASM_OP): Removed undef.
9538         (STARTFILE_SPEC): Removed mabi=32.
9539         (ENDFILE_SPEC): Likewise.
9540         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
9541         (MACHINE_TYPE): Update for IRIX 6.5.
9542         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
9543         TARGET_IRIX by TARGET_IRIX6.
9544         (mips_file_start): Likewise.
9545         (mips_output_external): Remove IRIX 5/6 O32 support.
9546         (mips_output_function_prologue): Likewise.
9547         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
9548         TARGET_IRIX6.
9549         (TARGET_CPU_CPP_BUILTINS): Likewise.
9550         (TARGET_IRIX): Removed.
9551         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
9552         (MULTILIB_DIRNAMES): Removed 32.
9553         (MULTILIB_OSDIRNAMES): Removed ../lib.
9554         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
9555         (Specific, mips-sgi-irix5): Document removal.
9556         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
9557         Remove references to older IRIX 6 releases and the O32 ABI.
9558
9559 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
9560
9561         PR bootstrap/43994
9562         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
9563         instead of DF_REF_REAL_REG.
9564
9565 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
9566
9567         PR target/43888
9568         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
9569         handling to still return true for x64 targets.
9570
9571 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9572
9573         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
9574
9575 2010-05-06  Jan Hubicka  <jh@suse.cz>
9576
9577         PR tree-optimization/43791
9578         * ipa-inline.c (update_caller_keys): Remove bogus
9579         disregard_inline_limits check.
9580
9581 2010-05-06  Michael Matz  <matz@suse.de>
9582
9583         PR tree-optimization/43984
9584         * tree-ssa-pre.c (inserted_phi_names): Remove.
9585         (inserted_exprs): Change to bitmap.
9586         (create_expression_by_pieces): Set bits, don't append to vector.
9587         (insert_into_preds_of_block): Don't handle inserted_phi_names.
9588         (eliminate): Don't look at inserted_phi_names, remove deleted
9589         insns from inserted_exprs.
9590         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
9591         (init_pre, fini_pre): Allocate and free bitmaps.
9592         (execute_pre): Insert insns on edges before elimination.
9593
9594 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9595
9596         * tree.c (initializer_zerop): Handle STRING_CST.
9597
9598 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9599
9600         PR 40989
9601         * doc/invoke.texi (Wimplicit): Document as C only.
9602         * opts.c (common_handle_option): Add argument kind.
9603         (handle_option): Rename as read_cmdline_option. Factor out code to...
9604         (handle_option): ... here. New.
9605         (handle_options): Rename as read_cmdline_options.
9606         (decode_options): Update call.
9607         (set_option): Use option index instead of option pointer. Classify
9608         diagnostics correctly.
9609         (enable_warning_as_error): Call handle_option.
9610         * opts.h (set_option): Update declaration.
9611         (handle_option): Declare.
9612         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
9613         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
9614         * c-opts.c (set_Wimplicit): Delete.
9615         (c_family_lang_mask): New static constant.
9616         (c_common_handle_option): Add argument kind. Use handle_option
9617         instead of set_Wimplicit.
9618         (c_common_post_options): warn_implicit and warn_implicit_int
9619         are disabled by default.
9620         * c-common.c (warn_implicit): Do not define here.
9621         * c-common.h (warn_implicit): Do not declare here.
9622         (c_common_handle_option): Update declaration.
9623         * lto-opts.c (lto_reissue_options): Update call to set_option.
9624
9625 2010-05-06  Richard Guenther  <rguenther@suse.de>
9626
9627         PR tree-optimization/43571
9628         * domwalk.c (walk_dominator_tree): Walk the dominator
9629         sons in more optimal order.
9630
9631 2010-05-06  Richard Guenther  <rguenther@suse.de>
9632
9633         PR tree-optimization/43934
9634         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
9635         (stmt_cost): Likewise.
9636         (extract_true_false_args_from_phi): New helper.
9637         (determine_max_movement): For PHI nodes verify we can hoist them
9638         and compute their cost.
9639         (determine_invariantness_stmt): Handle PHI nodes.
9640         (move_computations_stmt): Likewise.  Hoist PHI nodes in
9641         if-converted form using COND_EXPRs.
9642         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
9643         (tree_ssa_lim): Likewise.
9644         * tree-flow.h (tree_ssa_lim): Adjust prototype.
9645         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
9646
9647 2010-05-06  Richard Guenther  <rguenther@suse.de>
9648
9649         PR tree-optimization/43987
9650         * tree-ssa-structalias.c (could_have_pointers): For possibly
9651         address-taken variables force pointers to be recorded.
9652         (create_variable_info_for_1): Likewise.
9653         (push_fields_onto_fieldstack): Pass in wheter all fields
9654         must have pointers.
9655         (find_func_aliases): Query types instead of vars whether
9656         they contain pointers where appropriate.
9657
9658 2010-05-06  Jan Hubicka  <jh@suse.cz>
9659
9660         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
9661         (record_reference, mark_address, mark_load, mark_store): Record
9662         references.
9663         (record_references_in_initializer): Update call of record_references.
9664         (rebuild_cgraph_edges): Remove all references before rebuiding.
9665         * cgraph.c (cgraph_create_node): Clear ref list.
9666         (cgraph_remove_node): Remove references.
9667         (dump_cgraph_node): Dump references.
9668         (cgraph_clone_node): Clone references.
9669         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
9670         (struct cgraph_node, varpool_node): Add ref_lst.
9671         * ipa-ref.c: New file.
9672         * ipa-ref.h: New file.
9673         * ipa-ref-inline.h: New file.
9674         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
9675         (referenced_from_other_partition_p): New function.
9676         (lto_output_varpool_node): Take set arugment; call
9677         referenced_from_other_partition.
9678         (lto_output_ref): New.
9679         (add_references): New.
9680         (output_refs): New.
9681         (output_cgraph): Compute boundary based on references; output refs.
9682         (output_varpool): Accept cgraph_node_set argument.
9683         (input_ref): New.
9684         (input_refs): New.
9685         (input_cgraph): Call input_refs.
9686         * lto-section-in.c (lto_section_name): Add refs.
9687         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
9688         (ipa-ref.o): New file.
9689         * varpool.c (varpool_node): Clear ipa ref list.
9690         (varpool_remove_node): Remove references.
9691         (dump_varpool_node): Dump references.
9692         (varpool_assemble_decl): Only compile finalized ones.
9693         (varpool_extra_name_alias): Initialize ref list.
9694         * lto-streamer.c (lto-get_section_name): Add .refs section.
9695         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
9696         (referenced_from_other_partition_p): Declared.
9697
9698 2010-05-06  Ira Rosen  <irar@il.ibm.com>
9699
9700         PR tree-optimization/43901
9701         * tree-vect-stmts.c (vectorizable_call): Assert that vector
9702         type is not NULL if it's transformation phase, and return
9703         FALSE if it's analysis.
9704         (vectorizable_conversion, vectorizable_operation,
9705         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
9706
9707 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
9708
9709         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9710         Delete.
9711         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9712         New define.
9713         * config/mips/mips-protos.h
9714         (mips_small_register_classes_for_mode_p): Delete prototype.
9715
9716 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
9717
9718         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
9719         * config/arm/arm.c (multiple_operation_profitable_p,
9720         compute_offset_order): New static functions.
9721         (load_multiple_sequence, store_multiple_sequence): Use them.
9722         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
9723         memory offsets, not register numbers.
9724         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
9725
9726 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
9727
9728         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
9729         (get_pending_sizes, put_pending_size, put_pending_sizes):
9730         Update the uses of pending_sizes.
9731         * c-decl.c (store_parm_decls): Likewise.
9732         * c-tree.h (struct c_arg_info): Likewise.
9733         * tree.h: Update the prototype for get_pending_sizes and
9734         put_pending_sizes.
9735
9736 2010-05-05  Jason Merrill  <jason@redhat.com>
9737
9738         PR debug/43370
9739         * c-common.c (handle_aligned_attribute): Respect
9740         ATTR_FLAG_TYPE_IN_PLACE.
9741
9742         PR testsuite/43758
9743         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
9744         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9745         (TARGET_INITIALIZER): Use it.
9746         * c-common.c (attribute_takes_identifier_p): Call it.
9747         * c-common.h: Update prototype.
9748         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
9749         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9750
9751 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
9752
9753         PR debug/43950
9754         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
9755         DW_ID_down_case for Fortran compilation units.
9756
9757 2010-05-05  Jan Hubicka  <jh@suse.cz>
9758
9759         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
9760         handle aliases.
9761
9762 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
9763
9764         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
9765         a variable-sized RESULT_DECL.
9766
9767 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
9768
9769         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
9770
9771 2010-05-05  Jason Merrill  <jason@redhat.com>
9772
9773         PR c++/43787
9774         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
9775         returns GS_OK.
9776         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
9777
9778 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
9779             Jakub Jelinek  <jakub@redhat.com>
9780
9781         PR debug/43478
9782         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
9783         (dead_debug_init, dead_debug_finish): New functions.
9784         (dead_debug_add, dead_debug_insert_before): Likewise.
9785         (df_note_bb_compute): Initialize a dead_debug object, add dead
9786         debug uses to it, insert debug bind insns before death insns,
9787         reset debug insns that refer to pending uses at the end.
9788         * rtl.h (make_debug_expr_from_rtl): New prototype.
9789         * varasm.c (make_debug_expr_from_rtl): New function.
9790
9791 2010-05-05  Jan Hubicka  <jh@suse.cz>
9792
9793         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
9794         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
9795         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
9796         lto_varpool_encoder_deref, lto_varpool_encoder_size,
9797         lto_varpool_encoder_encode_initializer_p,
9798         lto_set_varpool_encoder_encode_initializer): New functions.
9799         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
9800         call output_varpool.
9801         (input_varpool_node): Do not always set analyzed.
9802         (input_cgraph_1): Return vector of cgraph nodes.
9803         (input_varpool_1): Return vector of varpools.
9804         (input_cgraph): Free the vectors.
9805         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9806         output only initializers needed.
9807         (lto_output): Only call output_cgraph.
9808         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
9809         * lto-section-out.c (lto_new_out_decl_state): Initialize
9810         state->varpool_node_encoder.
9811         * lto-streamer.h (lto_varpool_encoder_d): New.
9812         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
9813         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
9814         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
9815         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
9816         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
9817         Declare.
9818         (output_varpool, input_varpool): Remove declarations.
9819
9820 2010-05-05  Jan Hubicka  <jh@suse.cz>
9821
9822         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
9823         with body can prevail.
9824
9825 2010-05-05  Jan Hubicka  <jh@suse.cz>
9826
9827         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
9828         size.
9829
9830 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9831
9832         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
9833
9834         * gengtype.h (erro_at_line): Constify pos argument.
9835
9836         * gengtype.c: Include hashtab.h.
9837         (enum gc_used): Document GC_MAYBE_POINTED_TO.
9838         (error_at_line): Constify pos argument.
9839         (do_typedef): Initialize p->opt field.
9840         (get_file_gtfilename): Fix comment typo.
9841         (struct walk_type_data): Constify line field.
9842         (get_output_file_for_structure): New function.
9843         (write_local_func_for_structure): Constify orig_s argument.
9844         Use get_output_file_for_structure.
9845         (write_func_for_structure): Use get_output_file_for_structure.
9846         (INDENT): New define.
9847         (dump_pair, dump_type, dump_type_list, dump_typekind)
9848         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
9849         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
9850         functions.
9851         (seen_types): New variable.
9852         (main): New variable do_dump.  Process "-d" command line option.
9853         Call dump_everything if dump requested.
9854
9855 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
9856
9857         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
9858         in a temporary instead of invoking the macro multiple times.
9859         (track_expr_p): Likewise.
9860
9861 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
9862
9863         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
9864         per new semantics.
9865         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
9866         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
9867         conditions for printing notes.
9868         * common.opt (-Wcoverage-mismatch): Allow negative, default to
9869         true, update documentation.
9870         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
9871
9872 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
9873
9874         PR c/43981
9875         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
9876         on dimen.
9877
9878 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9879
9880         PR target/43799
9881         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
9882         (*sse_prologue_save_insn1): Likewise.
9883         (SSE prologue save splitter): Likewise.
9884
9885 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9886
9887         * tree.c (free_lang_data_in_one_sizepos): New inline function.
9888         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
9889         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
9890         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
9891         all decls.  Call it on DECL_FIELD_OFFSET of fields.
9892         (find_decls_types_r): Follow DECL_VALUE_EXPR.
9893         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
9894
9895 2010-05-04  Martin Jambor  <mjambor@suse.cz>
9896
9897         * tree-sra.c (build_access_from_expr_1): The first parameter type
9898         changed to simple tree.
9899         (build_access_from_expr): Likewise, gsi parameter was eliminated.
9900         (scan_assign_result): Renamed to assignment_mod_result, enum elements
9901         renamed as well.
9902         (build_accesses_from_assign): Removed all parameters except for a
9903         simple gimple statement.  Now returns a simple bool.
9904         (scan_function): All non-analysis parts moved to separate functions
9905         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
9906         parameters and updated both callers.
9907         (sra_modify_expr): Removed parameter data.
9908         (sra_modify_function_body): New function.
9909         (perform_intra_sra): Call sra_modify_function_body to modify the
9910         function body.
9911         (replace_removed_params_ssa_names): Parameter data changed into
9912         adjustments vector.
9913         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
9914         changed the parameter dont_convert to convert with the opposite
9915         meaning.
9916         (sra_ipa_modify_assign): Parameter data changed into adjustments
9917         vector, return value changed to bool.
9918         (ipa_sra_modify_function_body): New function.
9919         (sra_ipa_reset_debug_stmts): Updated a comment.
9920         (modify_function): Use ipa_sra_modify_function_body to modify function
9921         body.
9922
9923 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9924
9925         PR middle-end/43671
9926         * alias.c (true_dependence): Handle the same VALUE in x and mem.
9927         (canon_true_dependence): Likewise.
9928         (write_dependence_p): Likewise.
9929
9930 2010-05-04  Jan Hubicka  <jh@suse.cz>
9931
9932         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
9933         * cgraphbuild.c: Include ipa-utils.h
9934         (record_reference_ctx): New struct.
9935         (record_reference): Simplify to work on initializers; not statements.
9936         (mark_address, mark_load, mark_store): New.
9937         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
9938         walk PHI nodes too.
9939         (record_references_in_initializer): Update use of record_reference.
9940         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
9941         walk PHI nodes too.
9942
9943 2010-05-04  Jan Hubicka  <jh@suse.cz>
9944
9945         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
9946         node will be removed anyway.
9947         (lto_varpool_replace_node): Allow also unanalyzed nodes;
9948         relink aliases of node into prevailing node.
9949         * varpool.c (varpool_remove_node): Remove aliases properly;
9950         when removing node, remove all its aliases too; remove DECL_INITIAL
9951         of removed node; ggc_free the varpool node.
9952
9953 2010-05-04  Richard Guenther  <rguenther@suse.de>
9954
9955         PR tree-optimization/43879
9956         * tree-ssa-structalias.c (alias_get_name): Use
9957         DECL_ASSEMBLER_NAME if available.
9958         (create_function_info_for): Return the varinfo node.
9959         (ipa_pta_execute): Associate same-body aliases and extra names
9960         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
9961
9962 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9963
9964         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
9965
9966 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
9967
9968         PR bootstrap/43964
9969         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
9970         only if HONOR_REG_ALLOC_ORDER is not defined.
9971
9972 2010-05-04  Richard Guenther  <rguenther@suse.de>
9973
9974         PR tree-optimization/43949
9975         * tree-vrp.c (extract_range_from_binary_expr): Only handle
9976         TRUNC_MOD_EXPR.
9977
9978 2010-04-26  Jason Merrill  <jason@redhat.com>
9979
9980         * c.opt (-fstrict-enums): New.
9981         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
9982
9983 2010-05-03  David Ung  <davidu@mips.com>
9984             James E. Wilson  <wilson@codesourcery.com>
9985
9986         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
9987         emit the trap instruction before the divide for TUNE_74K.
9988
9989 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
9990
9991         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
9992         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
9993         based on the above, for new target hook.
9994
9995         * hooks.c (hook_bool_mode_true): New generic hook.
9996         * hooks.h (hook_bool_mode_true): Add prototype.
9997
9998         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
9999         target hook.
10000         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10001         target hook, set to hook_bool_mode_false.
10002         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10003         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10004         with targetm.small_register_classes_for_mode_p.
10005         (find_reusable_reload): Likewise.
10006         (combine_reloads): Likewise.
10007         * reload1.c (reload_as_needed): Likewise.
10008         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10009         * ifcvt.c (noce_process_if_block, check_cond_move_block,
10010         dead_or_predicable): Likewise.
10011         * regmove.c (optimize_reg_copy_1): Likewise.
10012         * calls.c (prepare_call_address): Likewise.
10013         (precompute_register_parameters): Likewise.
10014
10015         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10016         hook definition.
10017         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10018         implementation of the hook that considers all register classes
10019         small except for SH64.
10020         (sh_override_options): Use the new hook.
10021         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10022         Add prototype.
10023
10024         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10025         hook definition.
10026         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10027         implementation of the hook that considers all register classes
10028         small for THUMB1.
10029         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10030         Add prototype.
10031
10032         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10033         hook definition.
10034         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10035         implementation of the hook that considers all register classes
10036         small for MIPS16.
10037         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10038         Add prototype.
10039
10040         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10041         hook definition.
10042         * config/m32c/m32c.h: Likewise.
10043         * config/pdp11/pdp11.h: Likewise.
10044         * config/avr/avr.h: Likewise.
10045         * config/xtensa/xtensa.h: Likewise.
10046         * config/m68hc11/m68hc11.h: Likewise.
10047         * config/mn10300/mn10300.h: Likewise.
10048         * config/mcore/mcore.h: Likewise.
10049         * config/h8300/h8300.h: Likewise.
10050         * config/bfin/bfin.h: Likewise.
10051
10052         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10053         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10054
10055 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
10056
10057         * double-int.h (tree_to_double_int): Remove macro.
10058         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10059         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10060         (tree_to_double_int): New function.
10061         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10062         Move ...
10063         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10064
10065 2010-05-03  Richard Guenther  <rguenther@suse.de>
10066
10067         PR tree-optimization/43971
10068         * tree-ssa-structalias.c (get_constraint_for_1): Fix
10069         constraints in the !flag_delete_null_pointer_checks case.
10070
10071 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
10072
10073         PR debug/43972
10074         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10075         result mode matches original rtl mode.
10076
10077 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
10078
10079         PR target/43888
10080         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10081
10082 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10083
10084         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10085         when processing flag options.
10086
10087 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10088
10089         * gcov-iov.c (main): Change format string placeholder
10090         from %#08x to 0x%08x.
10091         * genchecksum.c (dosum): Change format string placeholder
10092         from %#02x to 0x%02x.
10093
10094 2010-05-02  Richard Guenther  <rguenther@suse.de>
10095
10096         PR tree-optimization/43879
10097         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10098
10099 2010-05-02  Bruno Haible  <bruno@clisp.org>
10100
10101         * doc/extend.texi (Function Attributes): Fix a typo.
10102
10103 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10104
10105         Revert:
10106         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10107         placeholder from 0x%x to %#x.
10108         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10109         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10110         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10111         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10112         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10113         * config/i386/i386.c (ix86_target_string): Ditto.
10114         * config/i386/i386.c (output_pic_addr_const): Ditto.
10115         (print_operand): Ditto.
10116
10117 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10118
10119         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10120         placeholder from 0x%x to %#x.
10121         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10122         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10123         (ASM_OUTPUT_DEBUG_DATA): Ditto.
10124         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10125         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10126         * optc-gen.awk: Ditto.
10127         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10128         (HOST_WIDE_INT_PRINT_HEX): Ditto.
10129         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10130         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10131
10132 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10133
10134         * target.h (struct calls): Add function_value_regno_p field.
10135         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10136         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10137         * targhooks.c (default_function_value_regno_p): New function.
10138         * targhooks.h (default_function_value_regno_p): Declare function.
10139         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10140         * builtins.c. (apply_result_size): (Ditto.).
10141         * combine.c. (likely_spilled_retval_p): (Ditto.).
10142         * mode-switching.c. Include 'target.h'.
10143         (create_pre_exit): Use function_value_regno_p hook.
10144         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10145         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10146         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10147
10148         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10149         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10150         (ix86_function_value_regno_p): Declare as static, change argument
10151         type to const unsigned int.
10152         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10153
10154 2010-05-01  Richard Guenther  <rguenther@suse.de>
10155
10156         PR tree-optimization/43949
10157         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10158         types.
10159         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10160
10161 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10162
10163         * rtl.h (CONST_DOUBLE_P): Define.
10164         (rtx_to_double_int): Declare.
10165         * emit-rtl.c (rtx_to_double_int): New function.
10166         * dwarf2out.c (insert_double): New function.
10167         (loc_descriptor, add_const_value_attribute): Clean up, use
10168         rtx_to_double_int and insert_double functions.
10169
10170 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
10171
10172         * doc/extend.texi (Inline): Add missing return keyword to examples.
10173         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10174         "command-line".
10175
10176 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10177
10178         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10179         the variable part of the offset as well.  Use highest_pow2_factor for
10180         all alignment checks.
10181
10182 2010-04-30  Richard Guenther  <rguenther@suse.de>
10183
10184         PR tree-optimization/43879
10185         * tree-ssa-structalias.c (type_could_have_pointers): Functions
10186         can have pointers.
10187
10188 2010-04-30  Jan Hubicka  <jh@suse.cz>
10189
10190         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10191         varpool.
10192         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10193
10194 2010-04-30  Jan Hubicka  <jh@suse.cz>
10195
10196         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10197         New.
10198         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10199         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10200         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10201         cgraph_node_set_needs_ltrans_p): Remove.
10202
10203 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10204
10205         * sdbout.c: Include vec.h, do not include varray.h.
10206         (deferred_global_decls, sdbout_global_decl,
10207         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10208         * toplev.c: Do not include varray.h.
10209         (dump_memory_report): Do not dump VARRAY statistics.
10210         * gengtype.c (open_base_file): Ignore varray.h.
10211         * Makefile.in: Update for abovementioned changes.
10212         Remove all traces of varray.c and varray.h.
10213         * varray.c: Remove file.
10214         * varray.h: Remove file.
10215
10216 2010-04-30  Jan Hubicka  <jh@suse.cz>
10217
10218         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10219         references.
10220
10221 2010-04-30  Jan Hubicka  <jh@suse.cz>
10222
10223         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10224         needed.
10225
10226 2010-04-30  Richard Guenther  <rguenther@suse.de>
10227
10228         * tree-ssa-structalias.c (get_constraint_for_1): Generate
10229         constraints for CONSTRUCTOR.
10230
10231 2010-04-30  Richard Guenther  <rguenther@suse.de>
10232
10233         PR lto/43946
10234         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10235         first after all lowering passes.
10236
10237 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10238
10239         * toplev.c: Include varray.h for statistics dumping.
10240         * tree.h: Do not declare varray_head_tag.
10241         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10242         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10243         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10244         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10245         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10246         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10247         c-common.c, c-common.h, reg-stack.c, basic-block.h,
10248         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10249         include varray.h.
10250         * Makefile.in: Update for abovementioned changes.
10251
10252 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
10253
10254         PR debug/43942
10255         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10256
10257 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10258
10259         * config/picochip/picochip.c (picochip_legitimize_address): Define.
10260         Use this function to do machine-specific conversion.
10261         (picochip_legitimize_reload_address): Likewise.
10262         (picochip_legitimate_address_p): Check valid base register only if
10263         strict.
10264         (picochip_check_conditional_copy): Check for modw only if opnd is
10265         register.
10266         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10267         to call the function in c.
10268         * config/picochip/picochip-protos.h
10269         (picochip_legitimize_reload_address): Define.
10270         * config/picochip/picochip.md (supported_compare1): Define.
10271
10272 2010-04-30  Jan Hubicka  <jh@suse.cz>
10273
10274         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10275         (cgraph_global_info): Remove inlined.
10276         (LTO_cgraph_tag_names): Remove.
10277         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10278         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10279         simplify cgraph tags and document.
10280         (lto_output_node): Use only LTO_cgraph_unavail_node and
10281         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10282         for_functions_valid, global info, process and output flags.
10283         (input_overwrite_node): Initialize estimated stack size and
10284         estimated growth.  Do not read flags we no longer store.
10285         (input_node): Likewise do not read info no longer stored.
10286         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10287         flag.
10288
10289 2010-04-30  Richard Guenther  <rguenther@suse.de>
10290
10291         PR tree-optimization/43879
10292         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10293         handle non-zero initializers.
10294
10295 2010-04-30  Richard Guenther  <rguenther@suse.de>
10296
10297         * builtins.c (fold_builtin_1): Delete free (0).
10298
10299 2010-04-29  Jan Hubicka  <jh@suse.cz>
10300
10301         * gengtype.c (open_base_files): Add lto-streamer.h
10302         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10303         (pass_ipa_cp): GGC collect.
10304         * toplev. (compile_file): Do not output symbols.
10305         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10306         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10307         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10308         * lto-section-in.c: Include ggc.h
10309         (lto_new_in_decl_state): Alloc in GGC.
10310         (lto_delete_in_decl_state): Likewise.
10311         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10312         Collect.
10313
10314 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10315
10316         PR target/42895
10317         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10318         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
10319         (HONOR_REG_ALLOC_ORDER): Describe new macro.
10320         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10321         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10322         account only if HONOR_REG_ALLOC_ORDER is not defined.
10323         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10324         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10325
10326 2010-04-29  Jon Grant  <04@jguk.org>
10327
10328         * collect2.c (vflag): Change type from int to bool.
10329         (debug): Likewise.
10330         (helpflag): New global bool.
10331         (main): Set vflag and debug with boolean, not integer truth values.
10332         Accept new "--help" option and output usage text if found.
10333         * collect2.h (vflag): Update prototype.
10334         (debug): Likewise.
10335
10336 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10337
10338         PR bootstrap/43936
10339         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
10340
10341 2010-04-29  Richard Guenther  <rguenther@suse.de>
10342
10343         PR bootstrap/43935
10344         * plugin.h (invoke_plugin_callbacks): Annotate arguments
10345         with ATTRIBUTE_UNUSED.
10346
10347 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10348
10349         PR target/43921
10350         * config/i386/i386.c (get_some_local_dynamic_name): Replace
10351         INSN_P with NONDEBUG_INSN_P.
10352         (distance_non_agu_define): Likewise.
10353         (distance_agu_use): Likewise.
10354
10355 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10356
10357         From Dominique d'Humieres  <dominiq@lps.ens.fr>
10358         PR bootstrap/43858
10359         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
10360         test_set.
10361
10362 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
10363
10364         * plugin.h (invoke_plugin_callbacks): New inline function.
10365         * plugin.c (flag_plugin_added): New global flag.
10366         (add_new_plugin): Initialize above flag.
10367         (invoke_plugin_callbacks): Rename to ...
10368         (invoke_plugin_callbacks_full): ... this.
10369
10370 2010-04-28  Jan Hubicka  <jh@suse.cz>
10371
10372         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
10373         (lto_varpool_replace_node): New.
10374         (lto_symtab_resolve_symbols): Resolve varpool nodes.
10375         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
10376         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
10377         * cgraph.h (varpool_node_ptr): New type.
10378         (varpool_node_ptr): New vector.
10379         (varpool_node_set_def): New structure.
10380         (varpool_node_set): New type.
10381         (varpool_node_set): New vector.
10382         (varpool_node_set_element_def): New structure.
10383         (varpool_node_set_element, const_varpool_node_set_element): New types.
10384         (varpool_node_set_iterator): New type.
10385         (varpool_node): Add prev pointers, add used_from_other_partition,
10386         in_other_partition.
10387         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
10388         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
10389         varpool_get_node, varpool_remove_node): Declare.
10390         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
10391         varpool_node_set_size): New inlines.
10392         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
10393         * tree-pass.h (varpool_node_set_def): Forward declare.
10394         (ipa_opt_pass_d): Summary writting takes vnode sets too.
10395         (ipa_write_optimization_summaries): Update prototype.
10396         * ipa-cp.c (ipcp_write_summary): Update.
10397         * ipa-reference.c (ipa_reference_write_summary): Update.
10398         * lto-cgraph.c (lto_output_varpool_node): New static function.
10399         (output_varpool): New function.
10400         (input_varpool_node): New static function.
10401         (input_varpool_1): New function.
10402         (input_cgraph): Input varpool.
10403         * ipa-pure-const.c (pure_const_write_summary): Update.
10404         * lto-streamer-out.c (lto_output): Update, output varpool too.
10405         (write_global_stream): Kill WPA hack.
10406         (produce_asm_for_decls): Update.
10407         (output_alias_pair_p): Handle variables.
10408         (output_unreferenced_globals): Output only needed partition of varpool.
10409         * ipa-inline.c (inline_write_summary): Update.
10410         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
10411         cgraph.
10412         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
10413         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
10414         varpool_node_set_new, varpool_node_set_add,
10415         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
10416         debug_varpool_node_set): New functions.
10417         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
10418         (execute_one_pass): Process new decls too.
10419         (ipa_write_summaries_2): Pass around vsets.
10420         (ipa_write_summaries_1): Likewise.
10421         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
10422         to add.
10423         (ipa_write_optimization_summaries_1): Pass around vsets.
10424         (ipa_write_optimization_summaries): Likewise.
10425         * varpool.c (varpool_get_node): New.
10426         (varpool_node): Update doubly linked lists.
10427         (varpool_remove_node): New.
10428         (dump_varpool_node): More dumping.
10429         (varpool_enqueue_needed_node): Update doubly linked lists.
10430         (decide_is_variable_needed): Kill ltrans hack.
10431         (varpool_finalize_decl): Kill lto hack.
10432         (varpool_assemble_decl): Skip decls in other partitions.
10433         (varpool_assemble_pending_decls): Update doubly linkes lists.
10434         (varpool_empty_needed_queue): Likewise.
10435         (varpool_extra_name_alias): Likewise.
10436         * lto-streamer.c (lto_get_section_name): Add vars section.
10437         * lto-streamer.h (lto_section_type): Update.
10438         (output_varpool, input_varpool): Declare.
10439
10440 2010-04-28  Mike Stump  <mikestump@comcast.net>
10441
10442         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
10443
10444 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10445
10446         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
10447         record or union type with RECORD_OR_UNION_TYPE_P predicate.
10448         (lto_input_ts_type_tree_pointers): Likewise.
10449         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
10450         (lto_output_ts_type_tree_pointers): Likewise.
10451
10452 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10453
10454         Uniquization of constants at the Tree level
10455         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
10456         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
10457         bit to the end.
10458         (tree_output_constant_def): Declare.
10459         * gimplify.c (gimplify_init_constructor): When using block copy, first
10460         uniquize the constant constructor on the RHS.
10461         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
10462         DECL_IN_CONSTANT_POOL flag.
10463         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
10464         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
10465         constant pool.
10466         (assemble_variable): Deal with symbols belonging to the tree constant
10467         pool.
10468         (get_constant_section): Add ALIGN parameter and simplify.
10469         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
10470         (assemble_constant_contents): Use the expression of the VAR_DECL.
10471         (output_constant_def_contents): Use the alignment of the VAR_DECL.
10472         (tree_output_constant_def): New global function.
10473         (mark_constant): Use the expression of the VAR_DECL.
10474         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
10475         its expression.
10476         (output_object_block): Likewise and assemble the expression.
10477
10478 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10479
10480         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
10481         hash_tree, eq_tree): New tree hash table.
10482         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
10483         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
10484         lto_orig_address_remove): Reimplement.
10485
10486 2010-04-28  Xinliang David Li  <davidxl@google.com>
10487
10488         PR c/42643
10489         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
10490         (compute_uninit_opnds_pos): New function.
10491         (is_non_loop_exit_postdominating): New function.
10492         (compute_control_dep_chain): New function.
10493         (find_pdom): New function.
10494         (convert_control_dep_chain_into_preds): New function.
10495         (find_predicates): New function.
10496         (find_control_equiv_block): New function.
10497         (collect_phi_def_edges): New function.
10498         (find_def_preds): New function.
10499         (find_dom): New function.
10500         (dump_predicates): New function.
10501         (get_cmp_code): New function.
10502         (is_value_included_in): New function.
10503         (find_matching_predicate_in_rest_chains): New function.
10504         (use_pred_not_overlap_with_undef_path_pred): New function.
10505         (is_use_properly_guarded): New function.
10506         (normalize_cond_1): New function.
10507         (is_and_or_or): New function.
10508         (normalize_cond): New function.
10509         (is_gcond_subset_of): New function.
10510         (is_subset_of_any): New function.
10511         (is_or_set_subset_of): New function.
10512         (is_and_set_subset_of): New function.
10513         (is_norm_cond_subset_of): New function.
10514         (is_pred_expr_subset_of): New function.
10515         (is_pred_chain_subset_of): New function.
10516         (is_included_in): New function.
10517         (is_superset_of): New function.
10518         (find_uninit_use): New function.
10519         (warn_uninitialized_phi): New function.
10520         (compute_possibly_undefined_names): New function.
10521         (ssa_undefined_value_p): New function.
10522         (execute_late_warn_uninitialized): New function.
10523         * tree-ssa.c (ssa_undefined_value_p): Removed.
10524         (warn_uninit): Changed to extern.
10525         (warn_uninitialized_phi): Removed.
10526         (warn_uninitialized_vars): Changed to extern.
10527         (execute_late_warn_uninitialized): Removed
10528         * tree-flow.h: Add new prototypes.
10529         * timevar.def: Add new time variable.
10530         * Makefile.in: Add new build file.
10531
10532 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
10533
10534         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10535         type if available.
10536
10537 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10538
10539         PR target/22224
10540         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
10541
10542 2010-04-28  Martin Jambor  <mjambor@suse.cz>
10543
10544         * cgraph.h (struct cgraph_node): New field indirect_calls.
10545         (struct cgraph_indirect_call_info): New type.
10546         (struct cgraph_edge): Removed field indirect_call. New fields
10547         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
10548         (cgraph_create_indirect_edge): Declare.
10549         (cgraph_make_edge_direct): Likewise.
10550         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
10551         * ipa-prop.h (struct ipa_param_call_note): Removed.
10552         (struct ipa_node_params): Removed field param_calls.
10553         (ipa_create_all_structures_for_iinln): Declare.
10554         * cgraph.c: Described indirect edges and uids in initial comment.
10555         (cgraph_add_edge_to_call_site_hash): New function.
10556         (cgraph_edge): Search also among the indirect edges, use
10557         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
10558         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
10559         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
10560         site hash.
10561         (initialize_inline_failed): Assign a reason to indirect edges.
10562         (cgraph_create_edge_1): New function.
10563         (cgraph_create_edge): Moved some functionality to
10564         cgraph_create_edge_1.
10565         (cgraph_create_indirect_edge): New function.
10566         (cgraph_edge_remove_callee): Add an assert checking for
10567         non-indirectness.
10568         (cgraph_edge_remove_caller): Special-case indirect edges.
10569         (cgraph_remove_edge): Likewise.
10570         (cgraph_set_edge_callee): New function.
10571         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
10572         (cgraph_make_edge_direct): New function.
10573         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
10574         the declaration of the call statement matches.
10575         (cgraph_node_remove_callees): Special-case indirect edges.
10576         (cgraph_clone_edge): Likewise.
10577         (cgraph_clone_node): Clone also the indirect edges.
10578         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
10579         indirect_call, dump count of indirect_calls edges.
10580         * ipa-prop.c (iinlining_processed_edges): New variable.
10581         (ipa_note_param_call): Create indirect edges instead of
10582         creating notes.  New parameter node.
10583         (ipa_analyze_call_uses): New parameter node, pass it on to
10584         ipa_note_param_call.
10585         (ipa_analyze_stmt_uses): Likewise.
10586         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
10587         (print_edge_addition_message): Work on edges rather than on notes.
10588         (update_call_notes_after_inlining): Likewise, renamed to
10589         update_indirect_edges_after_inlining.
10590         (ipa_create_all_structures_for_iinln): New function.
10591         (ipa_free_node_params_substructures): Do not free notes.
10592         (ipa_edge_duplication_hook): Propagate bits within
10593         iinlining_processed_edges bitmap.
10594         (ipa_node_duplication_hook): Do not duplicate notes.
10595         (free_all_ipa_structures_after_ipa_cp): Renamed to
10596         ipa_free_all_structures_after_ipa_cp.
10597         (free_all_ipa_structures_after_iinln): Renamed to
10598         ipa_free_all_structures_after_iinln.
10599         (ipa_write_param_call_note): Removed.
10600         (ipa_read_param_call_note): Removed.
10601         (ipa_write_indirect_edge_info): New function.
10602         (ipa_read_indirect_edge_info): Likewise.
10603         (ipa_write_node_info): Do not stream notes, do stream information
10604         in indirect edges.
10605         (ipa_read_node_info): Likewise.
10606         (lto_ipa_fixup_call_notes): Removed.
10607         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
10608         * ipa-inline.c (pass_ipa_inline): Likewise.
10609         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
10610         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
10611         * tree-inline.c (copy_bb): Removed an unnecessary double check for
10612         is_gimple_call.
10613         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
10614         edges.
10615         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
10616         (output_cgraph): Stream also indirect edges.
10617         (lto_output_edge): Added capability to stream indirect edges.
10618         (input_edge): Likewise.
10619         (input_cgraph_1): Likewise.
10620         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
10621         of indirect edges.
10622
10623 2010-04-28  Richard Guenther  <rguenther@suse.de>
10624
10625         PR tree-optimization/43879
10626         PR tree-optimization/43909
10627         * tree-ssa-structalias.c (struct variable_info): Add
10628         only_restrict_pointers flag.
10629         (new_var_info): Initialize it.  Increment stats.total_vars here.
10630         (create_function_info_for): Do not increment stats.total_vars here.
10631         (get_function_part_constraint): Fix build with C++.
10632         (insert_into_field_list): Remove.
10633         (push_fields_onto_fieldstack): Properly merge fields.
10634         (create_variable_info_for): Split and simplify.
10635         (create_variable_info_for_1): New piece.
10636         (intra_create_variable_infos): Properly make restrict constraints
10637         from parameters.
10638
10639 2010-04-28  Richard Guenther  <rguenther@suse.de>
10640
10641         PR c++/43880
10642         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
10643
10644 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10645             Jan Hubicka  <hubicka@ucw.cz>
10646
10647         * doc/invoke.texi (-Wsuggest-attribute=const,
10648         -Wsuggest-attribute=pure): Document.
10649         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
10650         (function_always_visible_to_compiler_p,
10651         suggest_attribute, warn_function_pure, warn_function_const):
10652         New functions.
10653         (check_call): Improve debug info.
10654         (analyze_function): Do not check availability.
10655         (add_new_function): Check availability.
10656         (propagate): Output warnings.
10657         (skip_function_for_local_pure_const): New function.
10658         (local_pure_const): Use it; output warnings.
10659         * common.opt (Wsuggest-attribute=const,
10660         Wsuggest-attribute=pure): New.
10661
10662 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10663
10664         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
10665         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
10666         or DW_CFA_def_cfa_offset{,_sf}.
10667
10668 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10669
10670         * tree.h: Fix truncated long macros.
10671
10672 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
10673
10674         * collect2.c (TARGET_64BIT): Redefine to target's default.
10675         * tlink.c: Likewise.
10676         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
10677         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
10678         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
10679         for underscoring __USER_LABEL_PREFIX__.
10680         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
10681         (SUB_LINK_ENTRY32): New.
10682         (SUB_LINK_ENTRY64): New.
10683         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
10684         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
10685         (SUB_LINK_ENTRY64): New.
10686         (SUB_LINK_ENTRY): New.
10687         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
10688         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
10689         x64 target is choosen.
10690         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
10691         * configure: Regenerated.
10692         * configure.ac (leading-mingw64-underscores): Option added.
10693
10694 2010-04-27  Jan Hubicka  <jh@suse.cz>
10695
10696         * doc/invoke.texi (-fipa-profile): Document.
10697         * opts.c (decode_options): Enable ipa-profile at -O1.
10698         * timevar.def (TV_IPA_PROFILE): Define.
10699         * common.opt (fipa-profile): Add.
10700         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
10701         flag for clones.
10702         (cgraph_propagate_frequency): Handle only local ones.
10703         * tree-pass.h (pass_ipa_profile): Declare.
10704         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
10705         (pass_ipa_profile): Use TV_IPA_PROFILE.
10706         * ipa.c (ipa_profile): New function.
10707         (gate_ipa_profile): Likewise.
10708         (pass_ipa_profile): New global variable.
10709         * passes.c (pass_ipa_profile): New.
10710
10711 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
10712
10713         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
10714
10715 2010-04-27  Martin Jambor  <mjambor@suse.cz>
10716
10717         PR middle-end/43812
10718         * ipa.c (dissolve_same_comdat_group_list): New function.
10719         (function_and_variable_visibility): Call
10720         dissolve_same_comdat_group_list when comdat group contains external or
10721         newly local nodes.
10722         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
10723         lists are circular and that they contain only DECL_ONE_ONLY nodes.
10724
10725 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10726
10727         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
10728         (const_hash_1) <VECTOR_CST>: New case.
10729         (compare_constant) <VECTOR_CST>: Likewise.
10730         <ADDR_EXPR>: Deal with LABEL_REFs.
10731         (copy_constant) <VECTOR_CST>: New case.
10732
10733 2010-04-27  Jan Hubicka  <jh@suse.cz>
10734
10735         * cgraph.c (cgraph_propagate_frequency): New function.
10736         * cgraph.h (cgraph_propagate_frequency): Declare.
10737         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
10738         cgraph_propagate_frequency.
10739
10740 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10741
10742         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
10743
10744 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
10745
10746         PR target/40657
10747         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
10748         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
10749         here to determine which regs to push and how much stack to reserve.
10750
10751 2010-04-27  Jie Zhang  <jie@codesourcery.com>
10752
10753         * doc/gimple.texi (gimple_statement_with_ops): Remove
10754         addresses_taken field.
10755         (gimple_statement_with_memory_ops): Likewise.
10756
10757 2010-04-27  Jan Hubicka  <jh@suse.cz>
10758
10759         * tree-inline.c (eni_inlining_weights): Remove.
10760         (estimate_num_insns): Special case more builtins.
10761
10762 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
10763
10764         PR c/32207
10765         * c-typeck.c (build_binary_op): Move forward check for comparison
10766         pointer with null pointer constant and adjust the diagnostic message.
10767
10768 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
10769
10770         PR lto/42776
10771         * configure.ac (gcc_cv_as_section_has_align): Set if installed
10772         binutils supports extended .section directive needed by LTO, or
10773         warn if older binutils found.
10774         (LTO_BINARY_READER): New AC_SUBST'd variable.
10775         (LTO_USE_LIBELF): Likewise.
10776         * gcc/config.gcc (lto_binary_reader): New target-specific configure
10777         variable.
10778         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
10779         (LTO_USE_LIBELF): Likewise.
10780         * configure: Regenerate.
10781
10782         * collect2.c (is_elf): Rename from this ...
10783         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
10784          object files in addition to ELF-formatted ones.
10785         (scan_prog_file): Caller updated.  Also allow for LTO info marker
10786         symbol to be prefixed or not by an extra underscore.
10787
10788         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
10789         * config/i386/winnt.c: Also #include lto-streamer.h
10790         (i386_pe_asm_named_section): Specify 1-byte section alignment for
10791         LTO named sections.
10792         (i386_pe_asm_output_aligned_decl_common): Add comment.
10793         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
10794
10795 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
10796
10797         PR target/43889
10798         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
10799         Add missing earlyclobber for second alternative.
10800
10801 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
10802
10803         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
10804         bits for artificial defs at the top of the block.
10805         * fwprop.c (single_def_use_enter_block): Don't call it.
10806
10807 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
10808
10809         PR 43715
10810         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
10811         instead of "$gcc_cv_objdump -T".
10812         Use "-undefined dynamic_lookup" on darwin.
10813         * gcc/configure: Regenerate.
10814
10815 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
10816
10817         PR c/43893
10818         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
10819
10820 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
10821
10822         * c-parser.c (struct c_token): Move location field up.
10823         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
10824         (struct c_declspecs): Convert typespec_word, storage_class, and
10825         default_int_p into bitfields.
10826         (struct c_declarator): Move loc field up.
10827
10828 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
10829
10830         * cfgloop.h (struct loop): Move can_be_parallel field up.
10831         * ipa-prop.h (struct ip_node_params): Move bitfields up.
10832         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
10833         down.
10834         (struct iv_cand): Convert pos field into a bitfield.
10835         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
10836         field up.
10837         (struct _stmt_vec_info): Shuffle fields for better packing.
10838
10839 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
10840
10841         * varasm.c (IN_NAMED_SECTION): Remove guard.
10842         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
10843         (IN_NAMED_SECTION_P): ...this.
10844         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
10845         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10846
10847 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
10848
10849         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
10850         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
10851         of shadowing it.  Fix comments.
10852
10853 2010-04-26  Jan Hubicka  <jh@suse.cz>
10854
10855         * cgraph.c (cgraph_create_node): Set node frequency to normal.
10856         (cgraph_clone_node): Copy function frequency.
10857         * cgraph.h (node_frequency): New enum
10858         (struct cgraph_node): Add.
10859         * final.c (rest_of_clean_state): Update.
10860         * lto-cgraph.c (lto_output_node): Output node frequency.
10861         (input_overwrite_node): Input node frequency.
10862         * tre-ssa-loop-ivopts (computation_cost): Update.
10863         * lto-streamer-out.c (output_function): Do not output function
10864         frequency.
10865         * predict.c (maybe_hot_frequency_p): Update and handle functions
10866         executed once.
10867         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
10868         attribute lookup.
10869         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
10870         (compute_function_frequency): Set noreturn functions to be executed
10871         once.
10872         (choose_function_section): Update.
10873         * lto-streamer-in.c (input_function): Do not input function frequency.
10874         * function.c (allocate_struct_function): Do not initialize function
10875         frequency.
10876         * function.h (function_frequency): Remove.
10877         (struct function): Remove function frequency.
10878         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
10879         (try_update): Update.
10880         * tree-inline.c (initialize_cfun): Do not update function frequency.
10881         * passes.c (pass_init_dump_file): Update.
10882         * i386.c (ix86_compute_frame_layout): Update.
10883         (ix86_pad_returns): Update.
10884
10885 2010-04-26  Jie Zhang  <jie@codesourcery.com>
10886
10887         PR tree-optimization/43833
10888         * tree-vrp.c (range_int_cst_p): New.
10889         (range_int_cst_singleton_p): New.
10890         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
10891         when both operands are constants.  Use range_int_cst_p in
10892         BIT_IOR_EXPR case.
10893
10894 2010-04-26  Jan Hubicka  <jh@suse.cz>
10895
10896         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
10897
10898 2010-04-26  Richard Guenther  <rguenther@suse.de>
10899
10900         PR lto/43080
10901         * gimple.c (gimple_decl_printable_name): Deal gracefully
10902         with a NULL DECL_NAME.
10903
10904 2010-04-26  Richard Guenther  <rguenther@suse.de>
10905
10906         PR lto/42425
10907         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
10908         if emitting debug information and it is either a function
10909         or a namespace decl.
10910
10911 2010-04-26  Ira Rosen  <irar@il.ibm.com>
10912
10913         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
10914         determine if the statement is vectorizable, and a macro to access it.
10915         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10916         Skip statements that can't be vectorized. If the analysis fails,
10917         mark the statement as unvectorizable if vectorizing basic block.
10918         (vect_compute_data_refs_alignment): Likewise.
10919         (vect_verify_datarefs_alignment): Skip statements marked as
10920         unvectorizable. Add print.
10921         (vect_analyze_group_access): Skip statements that can't be
10922         vectorized. If the analysis fails, mark the statement as
10923         unvectorizable if vectorizing basic block.
10924         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
10925         * tree-vect-stmts.c (vectorizable_store): Fix the number of
10926         generated stmts for SLP.
10927         (new_stmt_vec_info): Initialize the new field.
10928         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
10929         statements marked as unvectorizable.
10930
10931 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
10932
10933         * c-common.c (flag_isoc1x): New.
10934         (flag_isoc99): Update comment.
10935         * c-common.h (flag_isoc1x): New.
10936         (flag_isoc99): Update comment.
10937         * c-cppbuiltin.c (builtin_define_float_constants): Also define
10938         __<type>_DECIMAL_DIG__.
10939         * c-opts.c (set_std_c1x): New.
10940         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
10941         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
10942         * c.opt (-std=c1x, -std=gnu1x): New options.
10943         * doc/cpp.texi: Mention -std=c1x.
10944         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
10945         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
10946         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
10947         * doc/standards.texi: Mention C1X.
10948         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
10949         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
10950         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
10951         Define for C1X.
10952
10953 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
10954
10955         * config/i386/gmon-sol2.c (_mcleanup): Change format string
10956         placeholder from 0x%x to %#x.
10957         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10958         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10959         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10960         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10961         * config/i386/i386.c (ix86_target_string): Ditto.
10962         (output_pic_addr_const): Ditto.
10963         (print_operand): Ditto.
10964
10965 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
10966
10967         * combine.c (find_split_point): Add third argument.  Use it
10968         to find nested multiply-accumulate instructions.  Adjust calls.
10969         (try_combine): Adjust call to find_split_point.
10970
10971 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
10972
10973         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
10974
10975 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
10976
10977         PR tree-optimization/41442
10978         * fold-const.c (merge_truthop_with_opposite_arm): New function.
10979         (fold_binary_loc): Call it.
10980
10981 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10982
10983         * toplev.c (general_init): Set default for fdiagnostics-show-option.
10984         * opts.c (common_handle_option): Allow disabling it.
10985         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
10986
10987 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
10988
10989         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
10990         between modes if both types are integral.
10991
10992 2010-04-23  Richard Guenther  <rguenther@suse.de>
10993
10994         PR tree-optimization/43572
10995         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
10996
10997 2010-04-23  Richard Guenther  <rguenther@suse.de>
10998
10999         PR lto/43455
11000         * tree-inline.c (tree_can_inline_p): Also check compatibility
11001         of return types.
11002
11003 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11004
11005         PR tree-optimization/43846
11006         * tree-sra.c (struct access): New flag grp_assignment_read.
11007         (build_accesses_from_assign): Set grp_assignment_read.
11008         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11009         (enum mark_read_status): New type.
11010         (analyze_access_subtree): Propagate grp_assignment_read, create
11011         accesses also if both direct_read and root->grp_assignment_read.
11012
11013 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11014
11015         PR middle-end/43835
11016         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11017         function does not have type attributes.
11018
11019 2010-04-23  Richard Guenther  <rguenther@suse.de>
11020
11021         PR lto/42653
11022         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11023         of FUNCTION_DECLs.
11024
11025 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11026
11027         * sese.h (create_if_region_on_edge): Remove.
11028
11029         * sese.c (create_if_region_on_edge): Make static.
11030
11031         * tree-inline.c: Do not include ggc.h.
11032
11033         * expr.c: Do not include ggc.h.
11034
11035         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11036         dependencies.
11037
11038 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
11039
11040         PR target/43744
11041         * config/sh/sh.c (find_barrier): Don't emit a constant pool
11042         in the middle of insns for casesi_worker_2.
11043
11044 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
11045
11046         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11047
11048 2010-04-22  Ira Rosen  <irar@il.ibm.com>
11049
11050         PR tree-optimization/43842
11051         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11052         loop unrolling in update of exit phis. Fix comment.
11053         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11054         least two reduction statements in the loop before starting SLP
11055         analysis.
11056
11057 2010-04-22  Nick Clifton  <nickc@redhat.com>
11058
11059         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11060
11061 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
11062
11063         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11064         to simplify a + ~a.
11065
11066 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11067
11068         * tree-parloops.c (loop_parallel_p): New argument
11069         parloop_obstack.  Pass it down.
11070         (parallelize_loops): New variable parloop_obstack.  Initialize it,
11071         pass it down, free it.
11072
11073         * tree-loop-linear.c (linear_transform_loops): Pass down
11074         lambda_obstack.
11075
11076         * tree-data-ref.h (lambda_compute_access_matrices): New argument
11077         of type struct obstack *.
11078
11079         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11080         scratch_obstack.  Initialize it, pass down, free it.
11081
11082         * lambda.h (lambda_loop_new): Remove.
11083         (lambda_matrix_new, lambda_matrix_inverse)
11084         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11085         argument of type struct obstack *.
11086
11087         * lambda-trans.c (lambda_trans_matrix_new): New argument
11088         lambda_obstack.  Pass it down, use obstack allocation for ret.
11089         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
11090         it down.
11091
11092         * lambda-mat.c (lambda_matrix_get_column)
11093         (lambda_matrix_project_to_null): Remove.
11094         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
11095         allocation for mat.
11096         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11097         lambda_obstack.
11098
11099         * lambda-code.c (lambda_loop_new): New function.
11100         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11101         (lambda_compute_auxillary_space, lambda_compute_target_space)
11102         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11103         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11104         (build_access_matrix): New argument lambda_obstack.  Use obstack
11105         allocation for am.
11106         (lambda_compute_step_signs, lambda_compute_access_matrices): New
11107         argument lambda_obstack.  Pass it down.
11108
11109 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11110
11111         * optabs.h (expand_widening_mult): Declare.
11112
11113 2010-04-22  Richard Guenther  <rguenther@suse.de>
11114
11115         PR tree-optimization/43845
11116         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11117         lookup the CALL_EXPR function and arguments.
11118
11119 2010-04-22  Nick Clifton  <nickc@redhat.com>
11120
11121         * config/stormy16/stormy16.c
11122         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11123         * config/stormy16/stormy16.h: Tidy up formatting.
11124         (DONT_USE_BUILTIN_SETJMP): Remove definition.
11125         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11126         (ineqbranchsi): Delete pattern.
11127         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11128         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11129         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11130         stormy16-lib2-ucmpsi2.c.
11131
11132 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11133
11134         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11135         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
11136         extra set merge_set_noclobber, and use it to relax the final test
11137         slightly.
11138         * df.h (df_simulate_find_noclobber_defs): Declare.
11139         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11140         conditional defs.
11141         (df_simulate_find_noclobber_defs): New function.
11142
11143 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
11144
11145         * config/i386/i386.md: Use {} around multi-line preparation statements.
11146
11147 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11148
11149         * c-tree.h (push_init_level, pop_init_level, set_init_index)
11150         (process_init_element): New argument of type struct obstack *.
11151
11152         * c-typeck.c (push_init_level, pop_init_level, set_designator)
11153         (set_init_index, set_init_label, set_nonincremental_init)
11154         (set_nonincremental_init_from_string, find_init_member)
11155         (output_init_element, output_pending_init_elements)
11156         (process_init_element): New argument braced_init_obstack.  Pass it
11157         down.
11158         (push_range_stack, add_pending_init): New argument
11159         braced_init_obstack.  Use obstack allocation.
11160
11161         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11162         braced_init_obstack.  Pass it down.
11163         (c_parser_braced_init): New variables ret, braced_init_obstack.
11164         Initialize obstack, pass it down and finally free it.
11165
11166 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11167
11168         PR middle-end/29274
11169         * tree-pass.h (pass_optimize_widening_mul): Declare.
11170         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11171         gate_optimize_widening_mul): New static functions.
11172         (pass_optimize_widening_mul): New.
11173         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11174         <case MULT_EXPR>: Remove support for widening multiplies.
11175         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11176         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11177         simplify_gen_unary rather than directly building extensions.
11178         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11179         WIDEN_MULT_EXPR.
11180         * expmed.c (expand_widening_mult): New function.
11181         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11182
11183 2010-04-21  Jan Hubicka  <jh@suse.cz>
11184
11185         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11186         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11187         * lto-wpa-fixup.c: Remove.
11188         * Makefile.in (lto-wpa-fixup.o): Remove.
11189         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11190         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11191         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11192
11193 2010-04-21  Jan Hubicka  <jh@suse.cz>
11194
11195         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11196         add write_optimization_summary, read_optimization_summary.
11197         (ipa_write_summaries_of_cgraph_node_set): Remove.
11198         (ipa_write_optimization_summaries): Declare.
11199         (ipa_read_optimization_summaries): Declare.
11200         * ipa-cp.c (pass_ipa_cp): Update.
11201         * ipa-reference.c (pass_ipa_reference): Update.
11202         * ipa-pure-const.c (pass_ipa_pure_const): Update.
11203         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11204         Update.
11205         * ipa-inline.c (pass_ipa_inline): Update.
11206         * ipa.c (pass_ipa_whole_program): Update.
11207         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11208         * passes.c (ipa_write_summaries_1): Do not test wpa.
11209         (ipa_write_optimization_summaries_1): New.
11210         (ipa_write_optimization_summaries): New.
11211         (ipa_read_summaries): Do not test ltrans.
11212         (ipa_read_optimization_summaries_1): New.
11213         (ipa_read_optimization_summaries): New.
11214
11215 2010-04-21  Jan Hubicka  <jh@suse.cz>
11216
11217         * lto-cgraph.c (lto_output_node): Do not output comdat groups
11218         for boundary nodes.
11219         (output_cgraph): Do not arrange comdat groups for boundary nodes.
11220
11221 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11222
11223         PR debug/40040
11224         * dwarf2out.c (add_name_and_src_coords_attributes): Add
11225         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11226
11227 2010-04-21  Jan Hubicka  <jh@suse.cz>
11228
11229         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11230
11231 2010-04-21  Jan Hubicka  <jh@suse.cz>
11232
11233         * varpool.c (decide_is_variable_needed): Variable is always needed
11234         during ltrans.
11235
11236 2010-04-21  Jan Hubicka  <jh@suse.cz>
11237
11238         * opts.c (decode_options): Enable pure-const pass for whopr.
11239
11240 2010-04-21  Jan Hubicka  <jh@suse.cz>
11241
11242         * cgraph.c (dump_cgraph_node): Dump also assembler name.
11243         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11244         at WPA dumping.
11245         (cgraph_decide_inlining): Do not expect callee to be removed in all
11246         cases.
11247
11248 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
11249
11250         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11251
11252 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11253
11254         * config/i386/i386.md (x86_shrd): Add athlon_decode and
11255         amdfam10_decode attributes.
11256
11257 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11258
11259         PR middle-end/43570
11260         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11261         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11262         (lower_copyprivate_clauses): Use private var in outer
11263         context instead of original var.  Make sure the types
11264         are correct for VLAs.
11265
11266 2010-04-21  Richard Guenther  <rguenther@suse.de>
11267
11268         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11269         to non-pointer objects.
11270
11271 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11272
11273         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
11274         last chain entry if it starts with the still current label.
11275         (add_location_or_const_value_attribute): Check that
11276         loc_list->first->next is NULL instead of comparing ->first with ->last.
11277         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11278         to add_var_loc_to_decl.
11279
11280         * dwarf2out.c (output_call_frame_info): For dw_cie_version
11281         >= 4 add also address size and segment size fields into CIE header.
11282
11283         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11284         long as address size is the same as sizeof (void *) and
11285         segment size is 0.
11286         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
11287         address size or segment size is unexpected, return DW_EH_PE_omit.
11288         (classify_object_over_fdes): If get_cie_encoding returned
11289         DW_EH_PE_omit, return -1.
11290         (init_object): If classify_object_over_fdes returned -1,
11291         pretend there were no FDEs at all.
11292
11293 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11294
11295         * config/i386/i386.md (bswap<mode>2): Macroize expander from
11296         bswap{si,di}2 using SWI48 mode iterator.
11297         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11298         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
11299         set modrm attribute of bswap insn to 0 and remove length attribute.
11300         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11301         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
11302         set mode attribute to <MODE> and remove length attribute.
11303
11304 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
11305
11306         PR rtl-optimization/43520
11307         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11308         zero available registers.
11309
11310 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11311
11312         * builtins.c (fold_builtin_cproj): Fold more cases.
11313
11314 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11315
11316         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11317         (fold_builtin_1): Fold builtin cproj.
11318         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11319         Use ATTR_CONST_NOTHROW_LIST.
11320
11321 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
11322
11323         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11324         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
11325         ffsi2_no_cmove for !TARGET_CMOVE.
11326         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
11327         (ffssi2): Remove expander.
11328         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11329         mode iterator.
11330         (ctz<mode>2): Ditto from ctz{si,di}2.
11331         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
11332         mode iterator.
11333         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
11334         mode iterator.
11335
11336 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11337
11338         * dwarf2out.c (AT_linkage_name): Define.
11339         (clone_as_declaration): Handle DW_AT_linkage_name.
11340         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
11341         of DW_AT_MIPS_linkage_name.
11342         (move_linkage_attr): Likewise.
11343         (dwarf2out_finish): Likewise.
11344
11345 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
11346
11347         PR middle-end/41952
11348         * fold-const.c (fold_comparison): New folding rule.
11349
11350 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
11351
11352         * double-int.h (double_int_setbit): Declare.
11353         * double-int.c (double_int_setbit): New function.
11354         * rtl.h (immed_double_int_const): Declare.
11355         * emit-rtl.c (immed_double_int_const): New function.
11356         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
11357         and immed_double_int_const functions.
11358         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
11359         expand_copysign_bit):  (Ditto.).
11360         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
11361         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
11362         * dojump.c (prefer_and_bit_test): (Ditto.).
11363         * expr.c (convert_modes, reduce_to_bit_field_precision,
11364         const_vector_from_tree): (Ditto.).
11365         * expmed.c (mask_rtx, lshift_value): (Ditto.).
11366
11367 2010-04-20  Jan Hubicka  <jh@suse.cz>
11368
11369         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
11370         (dump_cgraph_node): Dump new flags.
11371         * cgraph.h (struct cgraph_node): Add flags
11372         reachable_from_other_partition and in_other_partition.
11373         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
11374         other partition can not be removed.
11375         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
11376         the other partition must be output; silence sanity checking on
11377         leaking functions bodies from other paritition.
11378         * lto-cgraph.c (reachable_from_other_partition_p): New function.
11379         (lto_output_node): Output new flags; do not sanity check that inline
11380         clones are output; drop lto_forced_extern_inline_p code; do not mock
11381         visibility flags at partition boundaries.
11382         (add_node_to): New function.
11383         (output_cgraph): Use it to sort functions so masters appear before
11384         clones.
11385         (input_overwrite_node): Input new flags.
11386         * passes.c (ipa_write_summaries): Do not call
11387         lto_new_extern_inline_states.
11388         * lto-section-out.c (forced_extern_inline,
11389         lto_new_extern_inline_states lto_delete_extern_inline_states,
11390         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
11391         * lto-streamer.h (lto_new_extern_inline_states,
11392         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
11393         lto_forced_extern_inline_p): Kill.
11394
11395 2010-04-20  Richard Guenther  <rguenther@suse.de>
11396
11397         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
11398         from vars that can have pointers.
11399         (process_constraint): Dump useless constraints.
11400
11401 2010-04-20  Richard Guenther  <rguenther@suse.de>
11402
11403         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
11404         (dump_sa_points_to_info): Remove asserts.
11405         (init_base_vars): nothing_id isn't an escape point nor does it
11406         have pointers.
11407
11408 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11409
11410         * tree.h (TYPE_REF_IS_RVALUE): Define.
11411         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
11412         should_move_die_to_comdat, prune_unused_types_walk): Handle
11413         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
11414         (modified_type_die, gen_reference_type_die): Emit
11415         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
11416         if TYPE_REF_IS_RVALUE and -gdwarf-4.
11417
11418 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11419
11420         PR target/43635
11421         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
11422         calls for -fpic -m31 if they have been sibcall optimized.
11423
11424 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
11425
11426         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
11427         ar.lc fixed and call-used.
11428
11429         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
11430
11431 2010-04-19  Jan Hubicka  <jh@suse.cz>
11432
11433         * opts.c (decode_options): Disable whpr incompatible passes.
11434         * lto/lto.c (lto_1_to_1_map): Skip clones.
11435         (read_cgraph_and_symbols): Do not mark everything as needed.
11436         (do_whole_program_analysis): Do map only after optimizing;
11437         set proper cgraph_state; use passmanager.
11438
11439 2010-04-19  DJ Delorie  <dj@redhat.com>
11440
11441         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
11442         POINTER_PLUS_EXPR and fix them.
11443
11444 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
11445
11446         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
11447         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
11448         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
11449         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
11450         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
11451         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
11452         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
11453         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
11454         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
11455         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
11456         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
11457
11458 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11459
11460         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
11461         (check_cond_move_block): Likewise.
11462         (cond_move_process_if_block): Likewise.
11463         (noce_find_if_block): Improve formatting.
11464         (find_if_header): Pass 0 to memset and tweak conditions.
11465         (cond_exec_find_if_block): Fix long lines and tweak conditions.
11466
11467 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
11468
11469         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
11470         for -gdwarf-4.
11471
11472         PR middle-end/43337
11473         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
11474         with non-local decl doesn't need chain.
11475
11476 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
11477
11478         * ira-color.c (allocno_reload_assign): Avoid accumulating
11479         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
11480
11481 2010-04-19  Martin Jambor  <mjambor@suse.cz>
11482
11483         * gimple.h (create_tmp_reg): Declare.
11484         * gimplify.c (create_tmp_reg): New function.
11485         (gimplify_return_expr): Use create_tmp_reg.
11486         (gimplify_omp_atomic): Likewise.
11487         (gimple_regimplify_operands): Likewise.
11488         * tree-dfa.c (make_rename_temp): Likewise.
11489         * tree-predcom.c (predcom_tmp_var): Likewise.
11490         (reassociate_to_the_same_stmt): Likewise.
11491         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
11492         (get_replaced_param_substitute): Likewise.
11493         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11494         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
11495         * tree-ssa-pre.c (get_representative_for): Likewise.
11496         (create_expression_by_pieces): Likewise.
11497         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11498         (create_tailcall_accumulator): Likewise.
11499
11500 2010-04-19  Martin Jambor  <mjambor@suse.cz>
11501
11502         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
11503         new_stmt.
11504         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
11505
11506 2010-04-19  Richard Guenther  <rguenther@suse.de>
11507
11508         PR tree-optimization/43796
11509         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
11510         from SCEV in the lattice.
11511         (vrp_visit_phi_node): Dump change.
11512
11513 2010-04-19  Richard Guenther  <rguenther@suse.de>
11514
11515         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
11516         * configure: Re-generated.
11517
11518 2010-04-19  Richard Guenther  <rguenther@suse.de>
11519
11520         PR tree-optimization/43783
11521         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
11522         constant ARRAY_REF operands two and three if possible.
11523
11524 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
11525
11526         PR target/43766
11527         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
11528
11529 2010-04-19  Jie Zhang  <jie@codesourcery.com>
11530
11531         PR target/43662
11532         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
11533
11534 2010-04-19  Ira Rosen  <irar@il.ibm.com>
11535
11536         PR tree-optimization/37027
11537         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
11538         and macro to access it.
11539         (vectorizable_reduction): Add argument.
11540         (vect_get_slp_defs): Likewise.
11541         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
11542         statements for possible use in SLP.
11543         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
11544         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
11545         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
11546         add new argument.
11547         (vectorizable_reduction): Likewise.
11548         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
11549         vect_get_slp_defs.
11550         (vectorizable_type_demotion, vectorizable_type_promotion,
11551         vectorizable_store): Likewise.
11552         (vect_analyze_stmt): Update call to vectorizable_reduction.
11553         (vect_transform_stmt): Likewise.
11554         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
11555         (vect_build_slp_tree): Fix indentation. Check that there are no loads
11556         from different interleaving chains in same node.
11557         (vect_slp_rearrange_stmts): New function.
11558         (vect_supported_load_permutation_p): Allow load permutations for
11559         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
11560         inside SLP nodes if necessary.
11561         (vect_analyze_slp_instance): Handle reductions.
11562         (vect_analyze_slp): Try to build SLP instances originating from groups
11563         of reductions.
11564         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
11565         (vect_get_constant_vectors): Create initial vectors for reductions
11566         according to reduction code. Add new argument.
11567         (vect_get_slp_defs): Add new argument, pass it to
11568         vect_get_constant_vectors.
11569         (vect_schedule_slp_instance): Remove SLP tree root statements.
11570
11571 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
11572
11573         * tree.h (ENUM_IS_SCOPED): Define.
11574         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
11575         for ENUM_IS_SCOPED enums.
11576
11577 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11578
11579         * fold-const.c (fold_comparison): Use ssizetype.
11580         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11581         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
11582         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
11583         * tree-object-size.c (compute_object_sizes): Use size_type_node.
11584
11585         * tree.h (initialize_sizetypes): Remove parameter.
11586         (build_common_tree_nodes): Remove second parameter.
11587         * stor-layout.c (initialize_sizetypes): Remove parameter.
11588         Always create an unsigned type.
11589         (set_sizetype): Assert that the passed type is unsigned and simplify.
11590         * tree.c (build_common_tree_nodes): Remove second parameter.
11591         Adjust call to initialize_sizetypes.
11592         * c-decl.c (c_init_decl_processing): Remove second argument in call to
11593         build_common_tree_nodes.
11594
11595 2010-04-18  Matthias Klose  <doko@ubuntu.com>
11596
11597         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
11598
11599 2010-04-18  Ira Rosen  <irar@il.ibm.com>
11600
11601         PR tree-optimization/43771
11602         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
11603         load permutation doesn't have gaps.
11604
11605 2010-04-18  Jan Hubicka  <jh@suse.cz>
11606
11607         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
11608         (sse_prologue_save_insn expander): Use new pattern.
11609         (sse_prologue_save_insn1): New pattern and splitter.
11610         (sse_prologue_save_insn): Update to deal also with 64bit aligned
11611         blocks.
11612         * i386.c (setup_incoming_varargs_64): Do not compute jump
11613         destination here.
11614         (ix86_gimplify_va_arg): Update alignment needed.
11615         (ix86_local_alignment): Do not align all local arrays to 128bit.
11616
11617 2010-04-17  Jan Hubicka  <jh@suse.cz>
11618
11619         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
11620
11621 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11622
11623         * arm.md (negdi2): Remove redundant code to force values into a
11624         register.
11625
11626 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11627
11628         * arm/bpabi.S: Add EABI alignment attributes to objects.
11629         * arm/bpabi-v6m.S: Likewise.
11630         * arm/crti.asm: Likewise.
11631         * arm/crtn.asm: Likewise.
11632         * arm/lib1funcs.asm: Likewise.
11633         * arm/libunwind.S: Likewise.
11634
11635 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11636
11637         * arm-protos.h (tune_params): New structure.
11638         * arm.c (current_tune): New variable.
11639         (arm_constant_limit): Delete.
11640         (struct processors): Add pointer to the tune parameters.
11641         (arm_slowmul_tune): New tuning option.
11642         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
11643         (all_cores): Adjust to pick up the tuning model.
11644         (arm_constant_limit): New function.
11645         (arm_override_options): Select the appropriate tuning model.  Delete
11646         initialization of arm_const_limit.
11647         (arm_split_constant): Use the new constant-limit model.
11648         (arm_rtx_costs): Pick up the current tuning model.
11649         * arm.md (is_strongarm, is_xscale): Delete.
11650         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
11651         for Xscale variant architectures.
11652         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
11653
11654 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11655
11656         * config/arm/arm.c (arm_gen_constant): Remove unused variable
11657         can_shift.
11658         (arm_rtx_costs_1): Remove unused variable extra_cost.
11659         (arm_unwind_emit_set): Use variable offset.
11660         (thumb1_output_casesi): Remove unused variable flags.
11661
11662 2010-04-16  Jeff Law  <law@redhat.com>
11663
11664         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
11665         needing assignment rather than doing a two-phase assignment.  Remove
11666         unused variable 'm'.
11667
11668 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11669
11670         PR bootstrap/43767
11671         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
11672
11673 2010-04-16  Doug Kwan  <dougkwan@google.com>
11674
11675         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
11676         (next_operand_entry_id): New static variable.
11677         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
11678         (add_to_ops_vec): Assigned unique ID to operand entry.
11679         (struct oecount_s): New field ID.
11680         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
11681         (undistribute_ops_list): Assign unique IDs to oecounts.
11682         (init_reassoc): reset next_operand_entry_id.
11683
11684 2010-04-16  Doug Kwan  <dougkwan@google.com>
11685
11686         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
11687         missing left parenthesis.
11688
11689 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
11690
11691         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
11692         *btdi_rex64 using SWI48 mode iterator.
11693         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
11694         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
11695         *jcc_btdi_mask_rex64.
11696
11697 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
11698
11699         * double-int.h (tree_to_double_int): Convert to macro.
11700         * double-int.c (tree_to_double_int): Remove.
11701
11702 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11703
11704         PR debug/43762
11705         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
11706         with want_address 2 and in case a single element list might be
11707         possible, call it again with want_address 0.
11708
11709 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11710
11711         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
11712         case 'W' print operands for HI mode.
11713         * config/h8300/h8300.h (Y0, Y2) : New constraints.
11714         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
11715         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
11716         * config/h8300/predicate.md (bit_register_indirect_operand): New.
11717
11718         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
11719
11720         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
11721         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
11722         #xx:3 and #xx:4 mode.
11723
11724         * config/h8300/h8300.md (inverted load with HImode dest): Add
11725         support for H8300SX.
11726
11727         * config/h8300/predicate.md (bit_operand): Allow immediate values that
11728         satisfy 'U' constraint.
11729
11730 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11731
11732         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
11733         * configure: Regenerate.
11734         * config.in: Regenerate.
11735         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
11736         works.
11737
11738 2010-04-16  Richard Guenther  <rguenther@suse.de>
11739
11740         * tree.h (struct tree_decl_minimal): Move pt_uid ...
11741         (struct tree_decl_common): ... here.
11742         (DECL_PT_UID): Adjust.
11743         (SET_DECL_PT_UID): Likewise.
11744         (DECL_PT_UID_SET_P): Likewise.
11745
11746 2010-04-16  Richard Guenther  <rguenther@suse.de>
11747
11748         PR tree-optimization/43572
11749         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
11750         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
11751         * tree-flow.h (is_call_clobbered): Remove.
11752         * tree-flow-inline.h (is_call_clobbered): Likewise.
11753         * tree-dfa.c (dump_variable): Do not dump call clobber state.
11754         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
11755         (execute_return_slot_opt): Adjust.
11756         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
11757         check for call clobbered vars here.
11758         (find_tail_calls): Move tailcall verification to the
11759         proper place.
11760
11761 2010-04-16  Diego Novillo  <dnovillo@google.com>
11762
11763         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
11764
11765 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11766
11767         PR target/40603
11768         * config/arm/arm.md (cbranchqi4): New pattern.
11769         * config/arm/predicates.md (const0_operand,
11770         cbranchqi4_comparison_operator): New predicates.
11771
11772 2010-04-16  Richard Guenther  <rguenther@suse.de>
11773
11774         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
11775         (dump_gimple_stmt): Likewise.
11776
11777 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11778
11779         * recog.h (struct recog_data): New field is_operator.
11780         (struct insn_operand_data): New field is_operator.
11781         * recog.c (extract_insn): Set recog_data.is_operator.
11782         * genoutput.c (output_operand_data): Emit code to set the
11783         is_operator field.
11784         * reload.c (find_reloads): Use it rather than testing for an
11785         empty constraint string.
11786
11787         PR target/41514
11788         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
11789         If the previous insn is a cbranchsi4_insn with the same arguments,
11790         omit the compare instruction.
11791
11792         * config/arm/arm.md (addsi3_cbranch): If destination is a high
11793         register, inputs must be low registers and we need a low register
11794         scratch.  Handle alternative 2 like alternative 3.
11795
11796 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11797
11798         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
11799         don't call get_addr on both.  If one expression is a VALUE and
11800         the other a REG, check VALUE's locs if the REG isn't among them.
11801
11802 2010-04-16  Christian Bruel  <christian.bruel@st.com>
11803
11804         * config/sh/sh.h (sh_frame_pointer_required): New function.
11805         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
11806         (flag_omit_frame_pointer) Set.
11807         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
11808         (rounded_frame_size): Adjust size with outgoing_args_size.
11809         (sh_set_return_address): Must return from stack pointer.
11810         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
11811         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
11812         (ACCUMULATE_OUTGOING_ARGS): Define.
11813         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
11814         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
11815
11816 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11817
11818         PR target/43471
11819         * config/sh/sh.c (sh_legitimize_reload_address): Use
11820         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
11821         Remove a unneeded check for offset_base.
11822
11823 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
11824
11825         * configure: Regenerated.
11826
11827 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11828
11829         * config/s390/s390.c (s390_call_save_register_used): Switch back
11830         to HARD_REGNO_NREGS.
11831
11832 2010-04-15  Richard Guenther  <rguenther@suse.de>
11833
11834         * alias.c (alias_set_subset_of): Handle alias-set zero
11835         child properly.
11836
11837 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
11838             Julian Brown  <julian@codesourcery.com>
11839
11840         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
11841         alternatives according to use of high and low regs.
11842         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
11843         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
11844         optimizing for size on Thumb-2.
11845
11846 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
11847
11848         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
11849
11850 2010-04-15  Richard Guenther  <rguenther@suse.de>
11851
11852         * tree-ssa-structalias.c (struct variable_info): Add
11853         is_fn_info flag.
11854         (new_var_info): Initialize it.
11855         (dump_constraints): Support printing last added constraints.
11856         (debug_constraints): Adjust.
11857         (dump_constraint_graph): Likewise.
11858         (make_heapvar_for): Check for NULL cfun.
11859         (get_function_part_constraint): New function.
11860         (get_fi_for_callee): Likewise.
11861         (find_func_aliases): Properly implement IPA PTA constraints.
11862         (process_ipa_clobber): New function.
11863         (find_func_clobbers): Likewise.
11864         (insert_into_field_list_sorted): Remove.
11865         (create_function_info_for): Properly allocate vars for IPA mode.
11866         Do not use insert_into_field_list_sorted.
11867         (create_variable_info_for): Properly generate constraints for
11868         global vars in IPA mode.
11869         (dump_solution_for_var): Always dump the solution.
11870         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
11871         (find_what_var_points_to): Adjust.
11872         (pt_solution_set): Change.
11873         (pt_solution_ior_into): New function.
11874         (pt_solution_empty_p): Export.
11875         (pt_solution_includes_global): Adjust.
11876         (pt_solution_includes_1): Likewise.
11877         (pt_solutions_intersect_1): Likewise.
11878         (dump_sa_points_to_info): Check some invariants.
11879         (solve_constraints): Move constraint dumping ...
11880         (compute_points_to_sets): ... here.
11881         (ipa_pta_execute): ... and here.
11882         (compute_may_aliases): Do not re-compute points-to info
11883         locally if IPA info is available.
11884         (ipa_escaped_pt): New global var.
11885         (ipa_pta_execute): Properly implement IPA PTA.
11886         * tree-into-ssa.c (dump_decl_set): Support dumping
11887         decls not in referenced-vars.
11888         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
11889         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
11890         (dump_points_to_solution): Likewise.
11891         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
11892         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
11893         (remap_gimple_stmt): Reset call clobber/use information if necessary.
11894         (copy_decl_to_var): Copy DECL_PT_UID.
11895         (copy_result_decl_to_var): Likewise.
11896         * tree.c (make_node_stat): Initialize DECL_PT_UID.
11897         (copy_node_stat): Copy it.
11898         * tree.h (DECL_PT_UID): New macro.
11899         (SET_DECL_PT_UID): Likewise.
11900         (DECL_PT_UID_SET_P): Likewise.
11901         (struct tree_decl_minimal): Add pt_uid member.
11902         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
11903         (pt_solution_empty_p): Declare.
11904         (pt_solution_set): Adjust.
11905         (ipa_escaped_pt): Declare.
11906         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
11907         * gimple-pretty-print.c (pp_points_to_solution): New function.
11908         (dump_gimple_call): Dump call clobber/use information.
11909         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
11910         * tree-pass.h (TDF_ALIAS): New dump option.
11911         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
11912         * doc/invoke.texi (-fipa-pta): Update documentation.
11913
11914 2010-04-15  Richard Guenther  <rguenther@suse.de>
11915
11916         * Makefile.in (OBJS-common): Add gimple-fold.o.
11917         (gimple-fold.o): New rule.
11918         * tree.h (maybe_fold_offset_to_reference,
11919         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
11920         prototypes ...
11921         * gimple.h: ... here.
11922         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
11923         may_propagate_address_into_dereference): Move prototypes ...
11924         * gimple.h: ... here.
11925         * tree-ssa-ccp.c (get_symbol_constant_value,
11926         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
11927         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
11928         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
11929         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
11930         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
11931         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
11932         gimplify_and_update_call_from_tree): Move ...
11933         * gimple-fold.c: ... here.  New file.
11934         (ccp_fold_builtin): Rename to ...
11935         (gimple_fold_builtin): ... this.
11936         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
11937
11938 2010-04-15  Richard Guenther  <rguenther@suse.de>
11939
11940         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
11941         fit_double_type, force_fit_type_double, add_double_with_sign,
11942         neg_double, mul_double_with_sign, lshift_double, rshift_double,
11943         lrotate_double, rrotate_double, div_and_round_double): Move ...
11944         * double-int.c: ... here.
11945         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
11946         add_double, neg_double, mul_double_with_sign, mul_double,
11947         lshift_double, rshift_double, lrotate_double, rrotate_double,
11948         div_and_round_double): Move prototypes ...
11949         * double-int.h: ... here.
11950
11951 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
11952
11953         PR target/43742
11954         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
11955         matching constraints to ensure inputs match the output.
11956
11957 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11958
11959         PR target/43742
11960         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
11961         in an input-only operand.
11962
11963 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
11964
11965         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
11966         (double_int_not, double_int_lshift, double_int_rshift): Declare.
11967         (double_int_negative_p): Convert to static inline function.
11968         * double-int.c (double_int_lshift, double_int_lshift): New functions.
11969         (double_int_negative_p): Remove.
11970         * tree.h (lshift_double, rshift_double):
11971         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
11972         * fold-const.c (fold_convert_const_int_from_real,
11973         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
11974         (lshift_double): Change type of arith argument to bool.
11975         (rshift_double): Change type of arith argument to bool. Correct
11976         comment.
11977         * expmed.c (mask_rtx, lshift_value): (Ditto.).
11978
11979 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
11980
11981         PR target/21803
11982         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
11983         at the start and end of the then/else blocks, and omit them from the
11984         conversion.
11985         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
11986         argument; all callers changed.  Pass zero to old_insns_match_p instead.
11987         (flow_find_head_matching_sequence): New function.
11988         (old_insns_match_p): Check REG_EH_REGION notes for calls.
11989         * basic-block.h (flow_find_cross_jump,
11990         flow_find_head_matching_sequence): Declare functions.
11991
11992 2010-04-14  Jason Merrill  <jason@redhat.com>
11993
11994         PR c++/36625
11995         * c-common.c (attribute_takes_identifier_p): New fn.
11996         * c-common.h: Declare it.
11997
11998 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11999
12000         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12001         splitter condition.
12002         (*udivmod<mode>4): Ditto.
12003
12004 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12005
12006         * config/i386/i386.md (maxmin_int): Rename code attribute from
12007         maxminiprefix and update all users.
12008         (maxmin_float): Ditto from maxminfprefix.
12009         (logic): Ditto from logicprefix.
12010         (absneg_mnemonic): Ditto from absnegprefix.
12011         * config/i386/mmx.md: Update all users of maxminiprefix,
12012         maxminfprefix and logicprefix for rename.
12013         * config/i386/sse.md: Ditto.
12014         * config/i386/sync.md (sync_<code><mode>): Update for
12015         logicprefix rename.
12016
12017 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12018
12019         PR 42966
12020         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12021         warnings converted to errors.
12022
12023 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12024
12025         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12026         used insn_type variable.
12027         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12028         to avoid set-but-not-used warning.
12029
12030 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12031
12032         * df-core.c (df_ref_debug): Change format string placeholder
12033         from 0x%x to %#x.
12034         * dwarf2asm.c (dw2_asm_output_data_raw,
12035         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12036         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12037         * dwarf2out.c (output_cfi, output_cfi_directive,
12038         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12039         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12040         Ditto.
12041         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12042         * print-rtl.c (print_rtx): Ditto.
12043
12044 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12045
12046         PR middle-end/42694
12047         * builtins.c (expand_builtin_pow_root): New function to expand pow
12048         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12049         series of sqrt and cbrt calls under -ffast-math.
12050         (expand_builtin_pow): Call it.
12051
12052 2010-04-14  Michael Matz  <matz@suse.de>
12053
12054         PR tree-optimization/42963
12055         * tree-cfg.c (touched_switch_bbs): New static variable.
12056         (group_case_labels_stmt): New function broken out from ...
12057         (group_case_labels): ... here, use the above.
12058         (start_recording_case_labels): Allocate touched_switch_bbs.
12059         (end_recording_case_labels): Deallocate it, call
12060         group_case_labels_stmt.
12061         (gimple_redirect_edge_and_branch): Remember index of affected BB.
12062
12063 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12064
12065         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12066         from insn template.
12067
12068 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12069
12070         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12071
12072 2010-04-13  Jan Hubicka  <jh@suse.cz>
12073
12074         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12075         of optimized out static functions.
12076         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12077         cost computation.  Also sanity check for overflows.
12078         (update_caller_keys): Update cgraph_edge_badness call; properly
12079         update fibheap and sanity check that it is up to date.
12080         (add_new_edges_to_heap): Update cgraph_edge_badness.
12081         (cgraph_decide_inlining_of_small_function): Likewise;
12082         add sanity checking that badness in heap is up to date;
12083         improve dumping of reason; Update badness of calls to the
12084         offline copy of function currently inlined; dump badness
12085         of functions not inlined because of unit growth limits.
12086
12087 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12088
12089         PR middle-end/32628
12090         * c-common.c (pointer_int_sum): Disregard overflow that occured only
12091         because of sign-extension change when converting to sizetype here...
12092         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12093
12094         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12095         the folding to constants.  Remove redundant final conversion.
12096         (fold_binary) <associate>: Do not associate if the re-association of
12097         constants alone overflows.
12098         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12099         to the end of the list.
12100         (multiple_of_p) <COND_EXPR>: New case.
12101
12102 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12103
12104         * opt-functions.awk (opt_sanitized_name): New.
12105         (opt_enum): New.
12106         * optc-gen.awk: Use it
12107         * opth-gen.awk: Use it.
12108
12109 2010-04-13  Martin Jambor  <mjambor@suse.cz>
12110
12111         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12112         (sra_modify_assign): Delete stmts loading dead data even if racc has no
12113         children.  Call replace_uses_with_default_def_ssa_name to handle
12114         SSA_NAES on lhs.
12115
12116 2010-04-13  Michael Matz  <matz@suse.de>
12117
12118         PR middle-end/43730
12119         * builtins.c (expand_builtin_interclass_mathfn): Also create
12120         a register if the predicate doesn't match.
12121
12122 2010-04-13  Diego Novillo  <dnovillo@google.com>
12123
12124         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12125         * c-pch.c: Include timevar.h.
12126         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12127         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12128         * ggc-common.c: Include timevar.h.
12129         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12130         * timevar.def (TV_PCH_SAVE): Define.
12131         (TV_PCH_CPP_SAVE): Define.
12132         (TV_PCH_PTR_REALLOC): Define.
12133         (TV_PCH_PTR_SORT): Define.
12134         (TV_PCH_RESTORE): Define.
12135         (TV_PCH_CPP_RESTORE): Define.
12136
12137 2010-04-13  Michael Matz  <matz@suse.de>
12138
12139         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12140         into MINUS_EXPRs.
12141         (can_reassociate_p): New function.
12142         (break_up_subtract_bb, reassociate_bb): Use it.
12143
12144 2010-04-13  Richard Guenther  <rguenther@suse.de>
12145
12146         PR bootstrap/43737
12147         * builtins.c (c_readstr): Fix assert.
12148
12149 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
12150
12151         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12152         when generating cltd insn.
12153
12154         (*ashl<mode>3_1): Remove special handling for register operand 2.
12155         (*ashlsi3_1_zext): Ditto.
12156         (*ashlhi3_1): Ditto.
12157         (*ashlhi3_1_lea): Ditto.
12158         (*ashlqi3_1): Ditto.
12159         (*ashlqi3_1_lea): Ditto.
12160         (*<shiftrt_insn><mode>3_1): Ditto.
12161         (*<shiftrt_insn>si3_1_zext): Ditto.
12162         (*<shiftrt_insn>qi3_1_slp): Ditto.
12163         (*<rotate_insn><mode>3_1): Ditto.
12164         (*<rotate_insn>si3_1_zext): Ditto.
12165         (*<rotate_insn>qi3_1_slp): Ditto.
12166
12167 2010-04-13  Richard Guenther  <rguenther@suse.de>
12168
12169         * tree-ssa-structalias.c (callused_id): Remove.
12170         (call_stmt_vars): New.
12171         (get_call_vi): Likewise.
12172         (lookup_call_use_vi): Likewise.
12173         (lookup_call_clobber_vi): Likewise.
12174         (get_call_use_vi): Likewise.
12175         (get_call_clobber_vi): Likewise.
12176         (make_transitive_closure_constraints): Likewise.
12177         (handle_const_call): Adjust to do per-call call-used handling.
12178         (handle_pure_call): Likewise.
12179         (find_what_var_points_to): Remove general callused handling.
12180         (init_base_vars): Likewise.
12181         (init_alias_vars): Initialize call_stmt_vars.
12182         (compute_points_to_sets): Process call-used and call-clobbered
12183         vars for call statements.
12184         (delete_points_to_sets): Free call_stmt_vars.
12185
12186 2010-04-13  Richard Guenther  <rguenther@suse.de>
12187
12188         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12189         Only add RW dependence for dependence distance zero.
12190         Adjust maximal vectorization factor according to dependences.
12191         Move alignment handling ...
12192         (vect_find_same_alignment_drs): ... here.  New function.
12193         (vect_analyze_data_ref_dependences): Adjust.
12194         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12195         (vect_analyze_data_refs): Adjust minimal vectorization factor
12196         according to data references.
12197         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12198         dependences before determining the vectorization factor.
12199         Analyze alignment after determining the vectorization factor.
12200         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12201         dependences before alignment.
12202         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12203         Adjust prototype.
12204         (vect_analyze_data_refs): Likewise.
12205         (MAX_VECTORIZATION_FACTOR): New define.
12206
12207 2010-04-13  Duncan Sands  <baldrick@free.fr>
12208
12209         * except.h (lang_eh_type_covers): Remove.
12210         * except.c (lang_eh_type_covers): Likewise.
12211
12212 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12213             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12214
12215         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12216         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12217         UNITS_PER_LONG where it is ABI relevant.
12218         (s390_return_addr_rtx): Likewise.
12219         (s390_back_chain_rtx): Likewise.
12220         (s390_frame_area): Likewise.
12221         (s390_frame_info): Likewise.
12222         (s390_initial_elimination_offset): Likewise.
12223         (save_gprs): Likewise.
12224         (s390_emit_prologue): Likewise.
12225         (s390_emit_epilogue): Likewise.
12226         (s390_function_arg_advance): Likewise.
12227         (s390_function_arg): Likewise.
12228         (s390_va_start): Likewise.
12229         (s390_gimplify_va_arg): Likewise.
12230         (s390_function_profiler): Likewise.
12231         (s390_optimize_prologue): Likewise.
12232         (s390_rtx_costs): Likewise.
12233         (s390_secondary_reload): Likewise.
12234         (s390_promote_function_mode): Likewise.
12235         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12236         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12237         registers available.
12238         (s390_unwind_word_mode): New function.
12239         (s390_function_value): Split 64 bit values into register pair if
12240         used as return value.
12241         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12242         function call parameters.  Handle parallels.
12243         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12244         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12245         (DWARF_CIE_DATA_ALIGNMENT): New macro.
12246         (s390_expand_setmem): Remove unused variable src_addr.
12247         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12248         deal with 64 bit registers.
12249         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12250         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12251         (UNITS_PER_LONG): New macro.
12252         * libjava/include/s390-signal.h: Define extended ucontext
12253         structure containing the upper halfs of the 64 bit registers.
12254
12255 2010-04-13  Simon Baldwin  <simonb@google.com>
12256
12257         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12258
12259 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12260
12261         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12262         rvalue on the RHS if the LHS is of a non-renamable type.
12263         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12264
12265 2010-04-13  Matthias Klose  <doko@ubuntu.com>
12266
12267         * gcc.c (cc1_options): Handle -iplugindir before processing
12268         the cc1 spec. Only add -iplugindir once.
12269         (cpp_unique_options): Add -iplugindir option if -fplugin* options
12270         found.
12271         * common.opt (iplugindir): Remove `Separate' property, initialize.
12272         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12273         option.
12274         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12275         (distclean): Remove plugin dir.
12276         * doc/invoke.texi: Document -iplugindir.
12277
12278 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
12279
12280         * doc/plugins.texi (Loading Plugins): Document short
12281         -fplugin=foo option.
12282         (Plugin API): Mention default_plugin_dir_name function.
12283
12284         * gcc.c (find_file_spec_function): Add new declaration.
12285         (static_spec_func): Use it for "find-file".
12286         (find_file_spec_function): Add new function.
12287         (cc1_options): Add -iplugindir option if -fplugin* options found.
12288
12289         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12290
12291         * plugin.c (add_new_plugin): Updated comment, and handle short
12292         plugin name.
12293         (default_plugin_dir_name): Added new function.
12294
12295         * common.opt (iplugindir): New option to set the plugin directory.
12296
12297 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
12298
12299         * config/i386/i386.md (any_rotate): New code iterator.
12300         (rotate_insn): New code attribute.
12301         (rotate): Ditto.
12302         (SWIM124): New mode iterator.
12303         (<rotate_insn>ti3): New expander.
12304         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12305         any_rotate code iterator.
12306         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12307         using any_rotate code iterator and SWIM124 mode iterator.
12308         (ix86_rotlti3): New insn_and_split pattern.
12309         (ix86_rotrti3): Ditto.
12310         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12311         ix86_rotl{di,ti}3 patterns.
12312         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12313         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12314         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12315         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12316         code iterator and SWI mode iterator.
12317         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12318         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12319         code iterator.
12320         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12321         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12322         (bswap rotatert splitter): Add splitter.
12323         (bswap splitter): Macroize splitter using any_rotate code iterator.
12324         Add insn predicate to split only for TARGET_USE_XCHGB or when
12325         optimizing function for size.
12326
12327 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12328
12329         * config/pa/pa.c (emit_move_sequence): Remove use of
12330         deleted variable flag_argument_noalias.
12331
12332 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12333
12334         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
12335         configurations.
12336         Add to unsupported targets list.
12337         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
12338         sparc*-sun-solaris2.[567]* from target lists.
12339         * configure: Regenerate.
12340         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
12341         removal.
12342         Remove Solaris 7 patch references.
12343         (Specific, sparc-sun-solaris2.7): Removed.
12344         (sparc-sun-solaris2*): Update Solaris 7 example.
12345         (sparc64-*-solaris2*): Likewise.
12346
12347 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12348
12349         * config.build (alpha*-dec-osf4*): Remove.
12350         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
12351         of obsolete configurations.
12352         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
12353         support.
12354         * config/alpha/t-osf4: Renamed to ...
12355         * config/alpha/t-osf5: ... this.
12356         * config/alpha/osf.h: Renamed to ...
12357         * config/alpha/osf5.h: ... this.
12358         Merged old osf5.h contents.
12359         Update comments.
12360         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
12361         (EXTRA_SPECS): Removed.
12362         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
12363         reflect removal of Tru64 UNIX V4.0/V5.0 support.
12364         Document that.
12365
12366 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12367
12368         * doc/contrib.texi (Contributors, Rainer Orth): Update.
12369
12370 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
12371
12372         PR/43702
12373         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
12374         __thiscall convention.
12375
12376 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12377
12378         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
12379         orig_base.
12380         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
12381
12382 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12383
12384         * function.c (assign_parms_initialize_all): Add unused attribute
12385         to fntype.
12386
12387 2010-04-12  Richard Guenther  <rguenther@suse.de>
12388
12389         * gsstruct.def (GSS_CALL): New.
12390         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
12391         * gimple.h: Include tree-ssa-alias.h.
12392         (struct gimple_statement_call): New.
12393         (union gimple_statement_struct_d): Add gimple_call member.
12394         (gimple_call_reset_alias_info): Declare.
12395         (gimple_call_use_set): New function.
12396         (gimple_call_clobber_set): Likewise.
12397         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
12398         * gimple.c (gimple_call_reset_alias_info): New function.
12399         (gimple_build_call_1): Call it.
12400         * lto-streamer-in.c (input_gimple_stmt): Likewise.
12401         * tree-inline.c (remap_gimple_stmt): Likewise.
12402         (expand_call_inline): Remove callused handling.
12403         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
12404         * tree-dfa.c (dump_variable): Likewise.
12405         * tree-parloops.c (parallelize_loops): Likewise.
12406         * tree-ssa.c (init_tree_ssa): Likewise.
12407         (delete_tree_ssa): Likewise.
12408         * tree-flow-inline.h (is_call_used): Remove.
12409         * tree-flow.h (struct gimple_df): Remove callused member.
12410         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
12411         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
12412         (ref_maybe_used_by_call_p_1): Simplify.
12413         (call_may_clobber_ref_p_1): Likewise.
12414         * tree-ssa-structalias.c (compute_points_to_sets): Set
12415         the call stmt used and clobbered sets.
12416         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
12417         (find_tail_calls): Verify the tail call.
12418
12419 2010-04-12  Richard Guenther  <rguenther@suse.de>
12420
12421         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
12422         single-iteration always-inline inlining.
12423         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
12424         (cgraph_decide_inlining): Do not handle always-inline specially.
12425         (try_inline): Remove always-inline cycle detection special case.
12426         Do not recurse on always-inlines.
12427         (cgraph_early_inlining): Do not iterate if not optimizing.
12428         (cgraph_gate_early_inlining): remove.
12429         (pass_early_inline): Run unconditionally.
12430         (gate_cgraph_decide_inlining): New function.
12431         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
12432         not inlining or optimizing.
12433         (cgraph_decide_inlining_of_small_functions): Also consider
12434         always-inline functions.
12435         (cgraph_default_inline_p): Return true for nodes which should
12436         disregard inline limits.
12437         (estimate_function_body_sizes): Assume zero size and time for
12438         nodes which are marked as disregarding inline limits.
12439         (cgraph_decide_recursive_inlining): Do not perform recursive
12440         inlining on always-inline nodes.
12441
12442 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
12443
12444         PR bootstrap/43699
12445         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
12446         for exprs satisfying handled_component_p.
12447
12448 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
12449
12450         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
12451         non-constant aggregate elements.
12452
12453         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
12454         is a real initialization.
12455
12456 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
12457
12458         PR c/36774
12459         * c-decl.c (start_function): Move forward check for nested function.
12460
12461 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
12462
12463         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
12464         * config/sh/sh.c: Include reload.h.
12465         (sh_legitimize_reload_address): New.
12466         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
12467         sh_legitimize_reload_address.
12468
12469 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12470
12471         * config/sh/sh.md (*movqi_pop): New insn pattern.
12472         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
12473
12474 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12475
12476         * config/i386/i386.md (any_shiftrt): New code iterator.
12477         (shiftrt_insn): New code attribute.
12478         (shiftrt): Ditto.
12479         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
12480         using any_shiftrt code iterator.
12481         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
12482         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
12483         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
12484         pattern from corresponding peephole2 patterns.
12485         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
12486         using any_shiftrt code iterator.
12487         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
12488         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
12489         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
12490         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
12491         *{ashr,lshr}<mode>3_cmp_zext.
12492         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
12493
12494 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12495
12496         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
12497         scratch register.
12498         (*lshr<mode>3_cconly): Ditto.
12499
12500 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12501
12502         * config/i386/i386.md (lshr<mode>3): Macroize expander from
12503         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12504         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12505         pattern from *lshr{di,ti}3_1 and corresponding splitters using
12506         DWI mode iterator.
12507         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12508         from corresponding peephole2 patterns.
12509         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
12510         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
12511         and *lshrdi3_1_rex64 using SWI mode iterator.
12512         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
12513         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
12514         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
12515         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
12516         and *lshrdi3_cmp_rex64 using SWI mode iterator.
12517         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
12518         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
12519         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
12520         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
12521         SWI mode iterator.
12522
12523 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
12524
12525         * config/i386/i386.md (ashr<mode>3): Macroize expander from
12526         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12527         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12528         pattern from *ashr{di,ti}3_1 and corresponding splitters using
12529         DWI mode iterator.
12530         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12531         from corresponding peephole2 patterns.
12532         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
12533         (ashrsi3_cvt): Rename from ashrsi3_31.
12534         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
12535         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
12536         and x86_64_shift_adj_3 using SWI48 mode iterator.
12537         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
12538         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
12539         and *ashrdi3_1_rex64 using SWI mode iterator.
12540         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
12541         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
12542         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
12543         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
12544         and *ashrdi3_cmp_rex64 using SWI mode iterator.
12545         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
12546         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
12547         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
12548         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
12549         SWI mode iterator.
12550         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
12551         * config/i386/i386.c (ix86_split_ashr): Update for renamed
12552         x86_shift<mode>_adj_3 expanders.
12553
12554 2010-04-10  Wei Guozhi  <carrot@google.com>
12555
12556         PR target/42601
12557         * config/arm/arm.c (arm_pic_static_addr): New function.
12558         (legitimize_pic_address): Call arm_pic_static_addr when it detects
12559         a static symbol.
12560         (arm_output_addr_const_extra): Output expression for new pattern.
12561         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
12562
12563 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
12564
12565         * ira-costs.c (record_reg_classes): Ignore alternatives that are
12566         not enabled.
12567
12568         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
12569         * web.c: Include "insn-config.h" and "recog.h".
12570         (union_match_dups): New function.
12571         (web_main): Call it.
12572         (union_defs): Don't try to recognize match_dups.
12573
12574         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
12575         if doing so would replace the entire pattern.
12576
12577 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12578
12579         PR target/43707
12580         PR target/43709
12581         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
12582         and splitter pattern.  Change splitter operand 1 predicate to
12583         nonmemory_operand.
12584
12585 2010-04-09  Martin Jambor  <mjambor@suse.cz>
12586
12587         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
12588         lattices are addresses of CONST_DECLs with the same initial value.
12589         (ipcp_print_all_lattices): Print values of CONST_DECLs.
12590         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
12591
12592 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
12593             Bernd Schmidt  <bernds@codesourcery.com>
12594
12595         * loop-invariant.c (replace_uses): New static function.
12596         (move_invariant_reg): Use it to ensure we can replace the uses.
12597
12598 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12599
12600         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
12601         function template.
12602         (picochip_override_options): Enable section anchors only above -O1.
12603         (picochip_reorg): Fixed a couple of build warnings.
12604
12605 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12606
12607         * configure.ac (plugin -rdynamic test): Log result.
12608         * configure: Regenerate.
12609         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
12610         (RDYNAMIC_SPEC): Define.
12611         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
12612
12613 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12614
12615         * configure.ac: Determine Sun ld version numbers.
12616         (comdat_group): Restrict GNU ld version checks to gld.
12617         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
12618         (enable_comdat): Support --enable-comdat.
12619         * configure: Regenerate.
12620         * doc/install.texi (Configuration): Document --enable-comdat.
12621
12622 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12623
12624         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
12625         * config/sol2-gld.h: ... here.
12626         * config.gcc (sparc*-*-solaris2*): Reflect this.
12627         (i[34567]86-*-solaris2*): Use it.
12628
12629 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
12630
12631         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
12632         setup_clocks_p.
12633         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
12634
12635 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12636
12637         PR 42965
12638         * diagnostic.c (diagnostic_initialize): Initialize
12639         some_warnings_are_errors.
12640         (diagnostic_finish): New.
12641         (diagnostic_action_after_output): Call it before exiting.
12642         (diagnostic_report_diagnostic): Do not print message here. Set
12643         some_warnings_are_errors.
12644         * diagnostic.h (diagnostic_context): Delete
12645         issue_warnings_are_errors_message. Add some_warnings_are_errors.
12646         (diagnostic_finish): Declare.
12647         * toplev.c (toplev_main): Call it before exit.
12648
12649 2010-04-09  Jason Merrill  <jason@redhat.com>
12650
12651         PR c++/42623
12652         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
12653         for incomplete type.
12654
12655         PR c++/41788
12656         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
12657         based on a warning flag.
12658
12659 2010-04-09  Richard Guenther  <rguenther@suse.de>
12660
12661         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
12662
12663 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
12664
12665         PR bootstrap/43684
12666         * varasm.c (default_assemble_visibility): Wrap vars that are
12667         set, but unused, by targets without GAS.
12668         * config/rs6000/rs6000.c (paired_emit_vector_compare):
12669         Remove set, but unused, vars.
12670         (rs6000_legitimize_tls_address): Likewise.
12671         (altivec_expand_dst_builtin): Likewise.
12672         * config/darwin.c (machopic_classify_symbol): Likewise.
12673         (machopic_indirection_name): Likewise.
12674
12675 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12676
12677         * config/i386/i386.md (DWI): New mode iterator.
12678         (S): New mode attribute.
12679         (shift_operand): Ditto.
12680         (shift_immediate_operand): Ditto.
12681         (ashl_input_operand): Ditto.
12682         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
12683         using SDWIM mode iterator.
12684         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12685         pattern from *ashl{di,ti}3_1 and corresponding splitters using
12686         DWI mode iterator.
12687         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
12688         from corresponding peephole2 patterns.
12689         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
12690         and x86_64_shift_adj_1 using SWI48 mode iterator.
12691         (x86_shift<mode>_adj_2): Ditto.
12692         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
12693         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
12694         using SWI48 mode iterator.
12695         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
12696         *ashldi3_cmp_rex64 using SWI mode iterator.
12697         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
12698         *ashldi3_cconly_rex64 using SWI mode iterator.
12699         * config/i386/i386.c (ix86_split_ashl): Update for renamed
12700         x86_shift<mode>_adj_{1,2}.
12701         (ix86_split_ashr): Ditto.
12702         (ix86_split_lshr): Ditto.
12703
12704 2010-04-09  Richard Guenther  <rguenther@suse.de>
12705
12706         * target.h (builtin_conversion): Pass in input and output types.
12707         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
12708         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
12709         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
12710         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
12711
12712         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
12713         Handle AVX modes.
12714         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
12715
12716 2010-04-09  Richard Guenther  <rguenther@suse.de>
12717
12718         PR target/43152
12719         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
12720
12721 2010-04-09  Richard Guenther  <rguenther@suse.de>
12722
12723         * tree-vectorizer.h (struct _stmt_vec_info): Document
12724         that vectype is the type of the LHS.
12725         (supportable_widening_operation, supportable_narrowing_operation):
12726         Get both input and output vector types as arguments.
12727         (vect_is_simple_use_1): Declare.
12728         (get_same_sized_vectype): Likewise.
12729         * tree-vect-loop.c (vect_determine_vectorization_factor):
12730         Set STMT_VINFO_VECTYPE to the vector type of the def.
12731         (vectorizable_reduction): Adjust.
12732         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
12733         Adjust.  Specify the output vector type.
12734         (vect_pattern_recog_1): Adjust.
12735         * tree-vect-stmts.c (get_same_sized_vectype): New function.
12736         (vectorizable_call): Adjust.
12737         (vectorizable_conversion): Likewise.
12738         (vectorizable_operation): Likewise.
12739         (vectorizable_type_demotion): Likewise.
12740         (vectorizable_type_promotion): Likewise.
12741         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
12742         the def.
12743         (vect_is_simple_use_1): New function.
12744         (supportable_widening_operation): Get both input and output
12745         vector types.
12746         (supportable_narrowing_operation): Likewise.
12747         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
12748
12749 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
12750
12751         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
12752         __thiscall and _thiscall as predefined macros.
12753         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
12754         thiscall attribute handling.
12755         (ix86_comp_type_attributes): Likewise.
12756         (ix86_function_regparm): Likewise.
12757         (ix86_return_pops_args): Likewise.
12758         (init_cumulative_args): Likewise.
12759         (find_drap_reg): Likewise.
12760         (ix86_static_chain): Likewise.
12761         (x86_this_parameter): Likewise.
12762         (x86_output_mi_thunk): Likewise.
12763         (ix86_attribute_table): Add description for thiscall attribute.
12764         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
12765         * doc/extend.texi: Add documentation for thiscall.
12766
12767 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12768
12769         PR c++/28584
12770         * c.opt (Wint-to-pointer-cast): Available in C++.
12771         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
12772
12773 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
12774
12775         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
12776         * calls.c (expand_call): Pass the function type to aggregate_value_p.
12777         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
12778         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
12779         function type instead.  Reorder and simplify checks.
12780
12781         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
12782
12783 2010-04-08  Jing Yu  <jingyu@google.com>
12784             Zdenek Dvorak  <ook@ucw.cz>
12785
12786         PR tree-optimization/42720
12787         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
12788         loop unswitch conditions here from ...
12789         (tree_unswitch_single_loop): ... here.
12790
12791 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
12792
12793         * tree-if-conv.c: Fix comments and simplify logic.
12794
12795 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
12796
12797         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
12798         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
12799         (main_tree_if_conversion): Update call to tree_if_conversion.
12800
12801 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12802
12803         PR 42485
12804         * doc/invoke.texi (-b,-V): Delete.
12805         * doc/tm.texi: Do not mention -b.
12806         * gcc.c (display_help): Delete -b and -V.
12807         (process_command): Delete -b and -V.
12808         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
12809
12810 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
12811             Wolfgang Gellerich  <gellerich@de.ibm.com>
12812
12813         Implement target hook for loop unrolling
12814         * target.h (loop_unroll_adjust): Add a new target hook function.
12815         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
12816         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
12817         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
12818         (s390_loop_unroll_adjust): Implement the new target hook for s390.
12819         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
12820         target hook.
12821         (decide_unroll_stupid): Likewise.
12822
12823 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12824
12825         PR target/43643
12826         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
12827
12828 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12829
12830         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
12831         (Specific, *-*-solaris2*): Likewise.
12832         Don't prefer Sun as over GNU as.
12833
12834 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
12835
12836         * config/s390/s390.c (override_options): Adjust the z10 defaults
12837         for max-unroll-times, max-completely-peeled-insns
12838         and max-completely-peel-times.
12839
12840 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12841
12842         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
12843         instructions for z10.
12844         (s390_expand_setmem): Likewise.
12845         (s390_expand_cmpmem): Likewise.
12846
12847 2010-04-08  Richard Guenther  <rguenther@suse.de>
12848
12849         PR tree-optimization/43679
12850         * tree-ssa-pre.c (eliminate): Only propagate copies.
12851
12852 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
12853
12854         PR bootstrap/43681
12855         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
12856         set but not used variable warning.
12857
12858 2010-04-08  Wei Guozhi  <carrot@google.com>
12859
12860         PR target/41653
12861         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
12862         (arm_size_rtx_costs): Call the new function when optimized for size.
12863
12864 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
12865
12866         PR debug/43670
12867         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
12868         op0 is not a MEM, just return NULL instead of assertion
12869         failure.
12870         (discover_nonconstant_array_refs): Don't walk debug stmts.
12871
12872 2010-04-08  Doug Kwan  <dougkwan@google.com>
12873
12874         * configure.ac: Recognize gold and do not use its version number
12875         to test ld features.
12876         * configure: Regenerate.
12877
12878 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
12879
12880         PR middle-end/40815
12881         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
12882         (negate_value): Move code to push elements to broken_up_substracts ...
12883         (eliminate_plus_minus_pair): ... here.  Push operands that have no
12884         negative pair to plus_negates.
12885         (repropagate_negates, init_reassoc, fini_reassoc): Update.
12886
12887 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12888
12889         * doc/install.texi (Configuration): Move description of
12890         --enable-lto, --with-libelf*, --enable-gold from Java section to
12891         general section.
12892
12893         * doc/generic.texi (Working with declarations)
12894         (Function Properties, C and C++ Trees): Fix typos.
12895         * doc/sourcebuild.texi (Top Level): Likewise.
12896
12897 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
12898
12899         PR c/18624
12900         * tree.h (DECL_READ_P): Define.
12901         (struct tree_decl_common): Add decl_read_flag.
12902         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
12903         a set but not used warning.
12904         (merge_decls): Merge DECL_READ_P flag.
12905         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
12906         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
12907         * c-common.c (handle_used_attribute, handle_unused_attribute):
12908         Likewise.
12909         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
12910         New prototypes.
12911         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
12912         New functions.
12913         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
12914         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
12915         c_parser_binary_expression, c_parser_cast_expression,
12916         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
12917         Call default_function_array_read_conversion instead of
12918         default_function_array_conversion where needed.
12919         (c_parser_unary_expression, c_parser_conditional_expression,
12920         c_parser_postfix_expression_after_primary, c_parser_initelt):
12921         Likewise.  Call mark_exp_read where needed.
12922         (c_parser_statement_after_labels, c_parser_asm_operands,
12923         c_parser_typeof_specifier, c_parser_sizeof_expression,
12924         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
12925         where needed.
12926         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
12927         New.
12928         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
12929         (warn_unused_but_set_parameter): Default to warn_unused
12930         && extra_warnings.
12931         * doc/invoke.texi: Document -Wunused-but-set-variable and
12932         -Wunused-but-set-parameter.
12933
12934         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
12935         used count variable.
12936         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
12937         when operandN variables aren't used in the body of the expander
12938         or splitter.
12939         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
12940         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
12941         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
12942         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
12943         FOR_EACH_IMM_USE_ON_STMT): Likewise.
12944         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
12945         * tree.c (PROCESS_ARG): Likewise.
12946
12947 2010-04-07  Simon Baldwin  <simonb@google.com>
12948
12949         * diagnostic.h (diagnostic_override_option_index): New macro to
12950         set a diagnostic's option_index.
12951         * c-tree.h (c_cpp_error): Add warning reason argument.
12952         * opts.c (_warning_as_error_callback): New.
12953         (register_warning_as_error_callback): Store callback for
12954         warnings enabled via enable_warning_as_error.
12955         (enable_warning_as_error): Call callback, minor code tidy.
12956         * opts.h (register_warning_as_error_callback): Declare.
12957         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
12958         response to -Werror=.
12959         (c_common_init_options): Register warning_as_error_callback in opts.c.
12960         * common.opt: Add -Wno-cpp option.
12961         * c-common.c (struct reason_option_codes_t): Map cpp warning
12962         reason codes to gcc option indexes.
12963         * (c_option_controlling_cpp_error): New function, lookup the gcc
12964         option index for a cpp warning reason code.
12965         * (c_cpp_error): Add warning reason argument, call
12966         c_option_controlling_cpp_error for diagnostic_override_option_index.
12967         * doc/invoke.texi: Document -Wno-cpp.
12968
12969 2010-04-07  Richard Guenther  <rguenther@suse.de>
12970
12971         * ipa-reference.c (mark_load): Use get_base_address.
12972         (mark_store): Likewise.
12973
12974         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
12975         inserting GIMPLE_NOPs into the IL.
12976         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12977         Explicitly strip handled components and indirect references.
12978
12979         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
12980         folding address expressions.
12981         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
12982         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
12983         operand_equal_p to compare decls.
12984         (ptr_deref_may_alias_decl_p): Likewise.
12985         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
12986         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
12987         Handle reversed comparison ops.
12988         * tree-sra.c (asm_visit_addr): Use get_base_address.
12989         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
12990         * ipa-reference.c (mark_address): Use get_base_address.
12991
12992 2010-04-07  Richard Guenther  <rguenther@suse.de>
12993
12994         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
12995         Propagate constants everywhere.
12996
12997 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
12998
12999         PR debug/43516
13000         * tree.c (MAX_INT_CACHED_PREC): Define.
13001         (nonstandard_integer_type_cache): New array.
13002         (build_nonstandard_integer_type): Cache results for precision
13003         <= MAX_INT_CACHED_PREC.
13004
13005 2010-04-07  Richard Guenther  <rguenther@suse.de>
13006
13007         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13008         -fargument-noalias-global, -fargument-noalias-anything): Remove.
13009         * common.opt: Likewise.
13010         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13011         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13012         (nonoverlapping_memrefs_p): Likewise.
13013         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13014         * opts.c (common_handle_option): Handle OPT_fargument_alias,
13015         OPT_fargument_noalias, OPT_fargument_noalias_anything and
13016         OPT_fargument_noalias_global for backward compatibility.
13017
13018 2010-04-07  Richard Guenther  <rguenther@suse.de>
13019
13020         PR tree-optimization/43270
13021         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13022         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13023         * tree-ssa-pre.c (phi_translate_1): Adjust.
13024         (fully_constant_expression): Split out vn_reference handling to ...
13025         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13026         Fold reads from constant strings.
13027         (vn_reference_lookup): Handle fully constant references.
13028         (vn_reference_lookup_pieces): Likewise.
13029         * Makefile.in (expmed.o-warn): Add -Wno-error.
13030
13031 2010-04-07  Martin Jambor  <mjambor@suse.cz>
13032
13033         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13034
13035 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
13036
13037         PR driver/41594
13038         * gcc.c: Add -static-libstdc++ to list of recognized options.
13039
13040 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13041
13042         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13043
13044 2010-04-07  Richard Guenther  <rguenther@suse.de>
13045
13046         PR middle-end/42617
13047         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13048         bases build simple mem attributes to retain points-to information.
13049
13050 2010-04-07  Richard Guenther  <rguenther@suse.de>
13051
13052         PR middle-end/42617
13053         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13054         preserve points-to related information.
13055
13056 2010-04-07  Richard Guenther  <rguenther@suse.de>
13057
13058         PR middle-end/42617
13059         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13060         discard plain indirect references.
13061         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13062         * tree.c (tree_nop_conversion): Likewise.
13063
13064 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
13065
13066         PR debug/43628
13067         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13068
13069 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
13070
13071         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13072         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13073
13074 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13075
13076         * tree-if-conv.c: Fix indentation and comments.
13077
13078 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13079
13080         * tree-if-conv.c: Sort static functions in topological order.
13081
13082 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13083
13084         * tree-if-conv.c: Fix indentation and comments.
13085
13086 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13087
13088         PR middle-end/43519
13089         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13090         lang_hooks.types.type_for_size instead of
13091         build_nonstandard_integer_type.
13092         When converting an unsigned type to signed, double its precision.
13093         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13094         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13095         (graphite_create_new_loop_guard): When ub + 1 wraps around,
13096         use lb <= ub.
13097
13098 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13099
13100         PR middle-end/43519
13101         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13102         POINTER_PLUS_EXPR for pointer types.
13103
13104 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13105
13106         PR middle-end/43519
13107         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13108         * graphite-clast-to-gimple.c: Include langhooks.h.
13109         (max_signed_precision_type): New.
13110         (max_precision_type): Takes two types as arguments.
13111         (precision_for_value): New.
13112         (precision_for_interval): New.
13113         (gcc_type_for_interval): New.
13114         (gcc_type_for_value): New.
13115         (gcc_type_for_clast_term): New.
13116         (gcc_type_for_clast_red): New.
13117         (gcc_type_for_clast_bin): New.
13118         (gcc_type_for_clast_expr): Split up into several functions.
13119         (gcc_type_for_clast_eq): Rewritten.
13120         (compute_bounds_for_level): New.
13121         (compute_type_for_level_1): New.
13122         (compute_type_for_level): New.
13123         (gcc_type_for_cloog_iv): Removed.
13124         (gcc_type_for_iv_of_clast_loop): Rewritten.
13125         (graphite_create_new_loop): Compute the lower and upper bound types
13126         with gcc_type_for_clast_expr.
13127         (graphite_create_new_loop_guard): Same.
13128         (find_cloog_iv_in_expr): Removed.
13129         (compute_cloog_iv_types_1): Removed.
13130         (compute_cloog_iv_types): Removed.
13131         (gloog): Do not call compute_cloog_iv_types.
13132         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13133         GBB_CLOOG_IV_TYPES.
13134         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13135         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13136         (GBB_CLOOG_IV_TYPES): Removed.
13137
13138 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13139
13140         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13141         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13142         (detect_commutative_reduction): Same.
13143
13144 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13145
13146         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13147         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
13148         argument.
13149         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13150         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13151         (rewrite_commutative_reductions_out_of_ssa): Same.
13152         * passes.c (execute_function_todo): Call verify_ssa for every pass
13153         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
13154         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13155         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13156         with an extra argument.
13157         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
13158         verify_ssa only when the extra argument is true.
13159         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13160         with an extra argument.
13161         (tree_transform_and_unroll_loop): Same.
13162
13163 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13164
13165         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13166         for all the passes of the LNO having LOOP_CLOSED_SSA.
13167         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13168         * tree-loop-distribution.c (pass_loop_distribution): Same.
13169         * tree-pass.h (TODO_verify_loops): Removed.
13170         * tree-ssa-loop.c (pass_tree_loop_init): Same.
13171         (pass_lim): Same.
13172         (pass_tree_unswitch): Same.
13173         (pass_predcom): Same.
13174         (pass_vectorize): Same.
13175         (pass_linear_transform): Same.
13176         (pass_graphite_transforms): Same.
13177         (pass_iv_canon): Same.
13178         (pass_complete_unroll): Same.
13179         (pass_complete_unrolli): Same.
13180         (pass_parallelize_loops): Same.
13181         (pass_loop_prefetch): Same.
13182         (pass_iv_optimize): Same.
13183
13184 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
13185
13186         PR middle-end/32824
13187         * passes.c (init_optimization_passes): Move pass_lim before
13188         pass_copy_prop and pass_dce_loop.
13189
13190 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13191
13192         PR target/43667
13193         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13194         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13195         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13196         MULTI_* defines for 4 argument vpermil2p* builtins.
13197
13198 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13199
13200         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13201         * config/i386/i386.c (x86_maybe_negate_const_int): New.
13202         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13203         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13204         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13205         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13206         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13207         Use x86_maybe_negate_const_int to output insn mnemonic.
13208         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
13209         check from instruction predicate.  Update comments.
13210         * config/i386/sync.md (sync_add<mode>): Use
13211         x86_maybe_negate_const_int to output insn mnemonic.
13212
13213 2010-04-06  Jan Hubicka  <jh@suse.cz>
13214
13215         PR tree-optimization/42906
13216         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13217         IGNORE_SELF argument.  Set visited_control_parents for fully
13218         processed BBs.
13219         (find_obviously_necessary_stmts): Update call of
13220         mark_control_dependent_edges_necessary.
13221         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
13222
13223 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13224
13225         * config/i386/i386.md: Remove comment about 'e' and 'E'
13226         operand modifier.
13227
13228 2010-04-06  Richard Guenther  <rguenther@suse.de>
13229
13230         PR tree-optimization/43627
13231         * tree-vrp.c (extract_range_from_unary_expr): Widenings
13232         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13233         not varying.
13234
13235 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13236
13237         * BASE-VER: Change to 4.6.0.
13238
13239         PR target/43638
13240         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13241         handling.
13242
13243 2010-04-06  Richard Guenther  <rguenther@suse.de>
13244
13245         PR middle-end/43661
13246         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13247
13248 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13249
13250         * doc/invoke.texi (Optimize Options): Document that LTO
13251         won't remove object access purely due to incompatible
13252         declarations.
13253
13254 2010-04-04  Matthias Klose  <doko@ubuntu.com>
13255
13256         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13257         Initialize variable.
13258
13259 2010-04-03  Richard Guenther  <rguenther@suse.de>
13260
13261         PR middle-end/42509
13262         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13263         require a non-NULL MEM_OFFSET.
13264
13265 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
13266
13267         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13268         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13269         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13270         config/alpha/predicates.md, config/arm/arm.md,
13271         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13272         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13273         config/darwin9.h, config/darwin.c, config/darwin.h,
13274         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13275         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13276         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13277         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13278         config/mips/mips.md, config/mn10300/mn10300.c,
13279         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13280         config/rs6000/aix.h, config/rs6000/dfp.md,
13281         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13282         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13283         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13284         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13285         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13286         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13287         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13288         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13289         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13290         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13291         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13292         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13293         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13294         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13295         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13296         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13297         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13298         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13299         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13300         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13301         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13302         opt-functions.awk, opth-gen.awk, params.def, passes.c,
13303         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13304         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13305         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13306         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13307         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13308         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13309         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13310         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13311         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13312         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13313         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13314         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13315         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13316         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13317
13318 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13319
13320         PR other/43620
13321         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13322         * aclocal.m4: Regenerate.
13323
13324 2010-04-02  Richard Guenther  <rguenther@suse.de>
13325
13326         PR tree-optimization/43629
13327         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13328         if we have seen a constant value.
13329
13330 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
13331
13332         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
13333
13334 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
13335
13336         PR target/43469
13337         * arm.c (legitimize_tls_address): Adjust call to
13338         gen_tls_load_dot_plus_four.
13339         (arm_note_pic_base): New function.
13340         (arm_cannot_copy_insn_p): Use it.
13341         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
13342         constraint.
13343
13344 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13345
13346         PR bootstrap/43531
13347
13348         Revert:
13349         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13350
13351         * Makefile.in ($(out_object_file)): Depend on
13352         gt-$(basename $(notdir $(out_file))).h.
13353
13354 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
13355
13356         * config.gcc (lm32-*-rtems*): Add t-lm32.
13357
13358 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
13359
13360         * config.gcc: Add lm32-*-rtems*.
13361         * config/lm32/rtems.h: New file.
13362
13363 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
13364
13365         PR target/42609
13366         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
13367
13368 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
13369
13370         * dwarf2out.c (output_compilation_unit_header): For
13371         -gdwarf-4 use version 4 instead of version 3.
13372         (output_line_info): For version 4 and above emit additional
13373         maximum ops per insn header field.
13374         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
13375
13376         * dwarf2out.c (is_c_family, is_java): Remove.
13377         (lower_bound_default): New function.
13378         (add_bound_info, gen_descr_array_type_die): Use it.
13379
13380 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
13381
13382         PR debug/43325
13383         * dwarf2out.c (gen_variable_die): Allow debug info for variable
13384         re-declaration when it happens in a function.
13385
13386 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
13387
13388         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
13389         (cgraph_remove_function_insertion_hook): Same.
13390         (cgraph_call_function_insertion_hooks): Same.
13391
13392 2010-04-01  Richard Guenther  <rguenther@suse.de>
13393
13394         PR middle-end/43614
13395         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
13396         and TREE_THIS_VOLATILE.
13397         (copy_ref_info): Likewise.
13398         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
13399         * tree.c (build6_stat): Ignore side-effects of all but arg5
13400         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
13401         TARGET_MEM_REF.
13402
13403 2010-04-01  Richard Guenther  <rguenther@suse.de>
13404
13405         PR tree-optimization/43607
13406         * ipa-type-escape.c (check_call): Do not access non-existing
13407         arguments.
13408
13409 2010-04-01  Richard Guenther  <rguenther@suse.de>
13410
13411         PR middle-end/43602
13412         Revert
13413         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
13414                     Jack Howarth  <howarth@bromo.med.uc.edu>
13415
13416         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13417         variables TLS.
13418
13419 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13420
13421         * doc/install.texi (Prerequisites): Document libelf usability on
13422         IRIX 5/6 and Solaris 2.
13423         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
13424         Update GNU as, GNU ld requirements.
13425         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
13426         Document Sun Studio compiler download.
13427         Update and simplify as, ld recommendations.
13428         (Specific, *-*-solaris2.7): Note obsoletion, removal.
13429
13430 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13431
13432         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
13433         with_tune_32 to pentium4.
13434
13435 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
13436
13437         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
13438
13439 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13440
13441         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
13442         obsoletion, removal.
13443         Update IDO URL.
13444         Document GNU as requirement.
13445         Update configure requirements.
13446         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
13447         Recomment IRIX 6.5.18+.
13448         Document IDF/IDL requirement.
13449         Document GNU as requirement.
13450         Document GNU ld bootstrap failure.
13451         Remove freeware.sgi.com reference.
13452
13453 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13454
13455         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
13456         UNIX V4.0, V5.0 obsoletion, removal.
13457         Remove --with-gc=simple reference.
13458         Update VM requirements during bootstrap.
13459         Remove -oldas bootstrap description.
13460         Update binutils reference.
13461         Remove comparison failure note.
13462
13463 2010-03-31  Richard Guenther  <rguenther@suse.de>
13464             Zdenek Dvorak  <ook@ucw.cz>
13465             Sebastian Pop  <sebastian.pop@amd.com>
13466
13467         PR middle-end/43464
13468         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
13469         with multiple arguments.
13470         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
13471
13472 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13473
13474         * graphite-dependences.c (print_pddr): Call print_pdr with an
13475         extra argument.
13476         * graphite-poly.c (debug_pdr): Add an extra argument for the
13477         verbosity level.
13478         (print_pdr): Same.
13479         (print_pbb_domain): Same.
13480         (print_pbb): Same.
13481         (print_scop_context): Same.
13482         (print_scop): Same.
13483         (print_cloog): Same.
13484         (debug_pbb_domain): Same.
13485         (debug_pbb): Same.
13486         (print_pdrs): Same.
13487         (debug_pdrs): Same.
13488         (debug_scop_context): Same.
13489         (debug_scop): Same.
13490         (debug_cloog): Same.
13491         (print_scop_params): Same.
13492         (debug_scop_params): Same.
13493         (print_iteration_domain): Same.
13494         (print_iteration_domains): Same.
13495         (debug_iteration_domain): Same.
13496         (debug_iteration_domains): Same.
13497         (print_scattering_function): Same.
13498         (print_scattering_functions): Same.
13499         (debug_scattering_function): Same.
13500         (debug_scattering_functions): Same.
13501         * graphite-poly.h (debug_pdr): Update declaration.
13502         (print_pdr): Same.
13503         (print_pbb_domain): Same.
13504         (print_pbb): Same.
13505         (print_scop_context): Same.
13506         (print_scop): Same.
13507         (print_cloog): Same.
13508         (debug_pbb_domain): Same.
13509         (debug_pbb): Same.
13510         (print_pdrs): Same.
13511         (debug_pdrs): Same.
13512         (debug_scop_context): Same.
13513         (debug_scop): Same.
13514         (debug_cloog): Same.
13515         (print_scop_params): Same.
13516         (debug_scop_params): Same.
13517         (print_iteration_domain): Same.
13518         (print_iteration_domains): Same.
13519         (debug_iteration_domain): Same.
13520         (debug_iteration_domains): Same.
13521         (print_scattering_function): Same.
13522         (print_scattering_functions): Same.
13523         (debug_scattering_function): Same.
13524         (debug_scattering_functions): Same.
13525
13526 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13527
13528         * graphite-poly.c (print_scattering_function_1): New.
13529         (print_scattering_function): Call it.
13530         (print_scop_params): Remove spaces at the end of lines.
13531         (print_cloog): New.
13532         (debug_cloog): New.
13533         * graphite-poly.h (print_cloog): Declared.
13534         (debug_cloog): Declared.
13535
13536 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13537
13538         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
13539         in loop->header.
13540         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
13541         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
13542         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
13543         to switch between adding the IV bump in loop->latch or in loop->header.
13544
13545 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13546
13547         * graphite-poly.c (print_scattering_function): Pretty print following
13548         the scoplib format.
13549         (print_pdr): Same.
13550         (print_pbb_domain): Same.
13551         (dump_gbb_cases): Same.
13552         (dump_gbb_conditions): Same.
13553         (print_pdrs): Same.
13554         (print_pbb): Same.
13555         (print_scop_params): Same.
13556         (print_scop_context): Same.
13557         (print_scop): Same.
13558         (print_pbb_body): New.
13559         (lst_indent_to): New.
13560         (print_lst): Start new lines with a #.
13561         * graphite-poly.h (pbb_bb): New.
13562         (pbb_index): Use pbb_bb.
13563         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
13564         disjuncts.
13565         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
13566
13567 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13568
13569         * dwarf2out.c (size_of_die): For -gdwarf-4 use
13570         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
13571         and 0 instead of 1 for dw_val_class_flag.
13572         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
13573         dw_val_class_range_list, dw_val_class_loc_list,
13574         dw_val_class_lineptr and dw_val_class_macptr, use
13575         DW_FORM_flag_present for dw_val_class_flag and
13576         DW_FORM_exprloc for dw_val_class_loc.
13577         (output_die): For -gdwarf-4 print dw_val_class_loc
13578         size as uleb128 instead of 1 or 2 bytes and don't print
13579         anything for dw_val_class_flag.
13580
13581         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
13582         instead of cselib_lookup following by tweaking locs->setting_insn.
13583
13584         PR bootstrap/43596
13585         * cselib.c (cselib_process_insn): Clear cselib_current_insn
13586         even before returning from label, setjmp call or volatile asm
13587         handling.
13588
13589 2010-03-31  Richard Guenther  <rguenther@suse.de>
13590
13591         PR middle-end/43600
13592         * cgraphunit.c (cgraph_output_in_order): Do not allocate
13593         temporary data on stack.
13594
13595 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13596
13597         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
13598         (PUSHSECTION_ASM_OP): Remove.
13599         (POPSECTION_ASM_OP): Remove.
13600         (PUSHSECTION_FORMAT): Remove.
13601         * config/sol2.h (PUSHSECTION_FORMAT): Define.
13602         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
13603         * config/sol2.c (solaris_output_init_fini): Use it.
13604
13605 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13606
13607         PR 43574
13608         * opt-functions.awk (var_type_struct): Use signed char type
13609         for simple variables.
13610
13611 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13612
13613         * config/sol2.c: Include output.h.
13614         (solaris_assemble_visibility): New function.
13615         * config/t-sol2 (sol2.o): Add output.h dependency.
13616         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
13617         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
13618         Redefine.
13619
13620 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13621
13622         PR target/43580
13623         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
13624         V2SImode or XFmode on PRE_DEC.
13625
13626         PR debug/43557
13627         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
13628         BLKmode.
13629
13630 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13631
13632         PR 43562
13633         * reload.h (caller_save_initialized_p): Declare.
13634         * toplev.c (backend_init_target): Don't call
13635         init_caller_save but set caller_save_initialized_p to false.
13636         * caller-save.c (caller_save_initialized_p): Define.
13637         (init_caller_save): Check caller_save_initialized_p.
13638         * ira.c (ira): Call init_caller_save if flag_caller_saves.
13639
13640 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13641
13642         PR target/39048
13643         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
13644         and soft-fp/t-softfp to tmake_file.
13645         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
13646         (LIBGCC2_TF_CEXT): Define.
13647         (TF_SIZE): Define.
13648
13649 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
13650
13651         PR debug/42977
13652         * cselib.c (n_useless_values): Document handling of debug locs.
13653         (n_useless_debug_values, n_debug_values): New variables.
13654         (new_elt_loc_list): Don't add to debug values, keep count.
13655         (promote_debug_loc): New.
13656         (cselib_reset_table): Zero new variables.
13657         (entry_and_rtx_equal_p): Promote debug locs.
13658         (discard_useless_locs): Increment n_useless_debug_values for
13659         debug values.
13660         (remove_useless_values): Adjust n_useless_values and n_debug_values
13661         with n_useless_debug_values.
13662         (add_mem_for_addr): Promote debug locs.
13663         (cselib_lookup_mem): Likewise.
13664         (cselib_lookup_addr): Renamed to...
13665         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
13666         (cselib_log_lookup): ... this.  Turn into...
13667         (cselib_lookup_addr): ... new wrapper.
13668         (cselib_lookup_from_insn): New.
13669         (cselib_invalidate_regno): Increment n_useless_debug_values for
13670         debug values.
13671         (cselib_invalidate_mem): Likewise.
13672         (cselib_process_insn): Take n_deleted and n_debug_values into
13673         account to guard remove_useless_value call.
13674         (cselib_finish): Zero n_useless_debug_values.
13675         * cselib.h (cselib_lookup_from_insn): Declare.
13676         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
13677         (sched_analyze_2): Likewise.
13678
13679 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
13680
13681         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
13682         functions.
13683         (adjust_mems): Replace narrowing SUBREG of expression containing
13684         just PLUS, MINUS, MULT and ASHIFT of registers and constants
13685         with operations in the narrower mode.
13686
13687         PR debug/43593
13688         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
13689         regs_invalidated_by_call instead all call_used_reg_set registers.
13690
13691 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
13692
13693         PR middle-end/43430
13694         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
13695         pointer comparisons with types_compatible_p.
13696         * tree-vect-stmts.c (vectorizable_call): Same.
13697         (vectorizable_condition): Same.
13698
13699 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13700
13701         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
13702         stack check if the mask would be zero.
13703
13704 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
13705             Jack Howarth  <howarth@bromo.med.uc.edu>
13706
13707         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13708         variables TLS.
13709
13710 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
13711
13712         PR other/25232
13713         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
13714         and __unordtf2.
13715         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
13716         Include ___unordxf2 and ___unordtf2.
13717         * config/i386/libgcc-glibc.ver: Do not define inheritance from
13718         GCC_4.4.0 here.
13719
13720 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
13721
13722         * config/lm32/t-lm32: New file.
13723         * config.gcc: Use the above file when targetting lm32.
13724
13725 2010-03-28  Duncan Sands  <baldrick@free.fr>
13726
13727         * Makefile.in (PLUGIN_HEADERS): Add except.h.
13728
13729 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13730
13731         PR middle-end/43431
13732         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13733         Improve vectorization cost model diagnostic.
13734
13735 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13736
13737         PR middle-end/43436
13738         * tree-vect-data-refs.c (vect_analyze_data_refs): When
13739         compute_data_dependences_for_loop returns false, early exit
13740         and output an extra diagnostic for the failed data reference
13741         analysis.
13742
13743 2010-03-29  Richard Guenther  <rguenther@suse.de>
13744
13745         PR tree-optimization/43560
13746         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
13747         (can_sm_ref_p): Treat stores to readonly locations as trapping.
13748
13749 2010-03-29  Jie Zhang  <jie@codesourcery.com>
13750
13751         PR 43564
13752         * toplev.c (process_options): Set optimization_default_node
13753         and optimization_current_node.
13754         * opts.c (decode_options): Don't set optimization_default_node
13755         and optimization_current_node.
13756
13757 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
13758
13759         * config/rtems.h: Abandon -qrtems_debug.
13760
13761 2010-03-28  Jan Hubicka  <jh@suse.cz>
13762
13763         PR tree-optimization/43505
13764         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
13765         map should not be copied.
13766
13767 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13768
13769         PR middle-end/41674
13770         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
13771         cdtors, set DECL_PRESERVE_P.
13772         * ipa.c (cgraph_externally_visible_p): Return true if declaration
13773         should be preseved.
13774
13775 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
13776
13777         PR tree-optimization/43528
13778         * stor-layout.c (place_field): Check that constant fits into
13779         unsigned HWI when skipping calculation of MS bitfield layout.
13780
13781 2010-03-27  Jan Hubicka  <jh@suse.cz>
13782
13783         PR middle-end/43391
13784         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
13785         notice_global_symbol work.
13786
13787 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
13788
13789         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
13790         instead of dwarf2out_decl.
13791         (struct var_loc_node): Remove section_label field.
13792         (dwarf2out_function_decl): New function.
13793         (dwarf2out_var_location): Don't set section_label field.
13794         (dwarf2out_begin_function): Don't empty decl_loc_table here.
13795
13796 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13797
13798         PR tree-optimization/43544
13799         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13800         First argument for builtin vectorized function hook is now a
13801         tree to be able to distinguish between machine specific and
13802         standard builtins.
13803         * targhooks.c (default_builtin_vectorized_function): Ditto.
13804         * targhooks.h (default_builtin_vectorized_function): Ditto.
13805         * target.h (struct gcc_target): Ditto.
13806         * tree-vect-stmts.c (vectorizable_function): Ditto.
13807         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
13808         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
13809         Ditto.
13810
13811 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
13812
13813         PR c/43381
13814         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
13815         nested binding iff it is a FUNCTION_DECL.
13816         (store_parm_decls_newstyle): Pass nested=true to bind for
13817         FUNCTION_DECLs amongst parameters.
13818
13819 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
13820
13821         * var-tracking.c (vt_expand_loc_callback): Don't run
13822         cselib_expand_value_rtx_cb in dummy mode if
13823         cselib_dummy_expand_value_rtx_cb returned false.
13824
13825         * var-tracking.c (emit_note_insn_var_location): For one part
13826         notes with offset 0, don't add EXPR_LIST around the location.
13827         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
13828         add_location_or_const_value_attribute): Adjust for that change.
13829
13830         PR debug/43540
13831         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
13832         into first operand and location into second.
13833         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
13834         dw_cfi_oprnd_loc for DW_CFA_expression.
13835         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
13836         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
13837         assume first argument is regnum and second argument is location.
13838
13839 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
13840
13841         PR target/42113
13842         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
13843         of scratch register to DImode.  Split to DImode comparison operator.
13844         Use SImode subreg of scratch register in the multiplication.
13845         (*cmp_sadd_sidi): Ditto.
13846         (*cmp_ssub_si): Ditto.
13847         (*cmp_ssub_sidi): Ditto.
13848
13849 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
13850
13851         PR target/43524
13852         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
13853         Remove invalid assert and wrong comment.
13854
13855 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
13856
13857         PR debug/43516
13858         * flags.h (final_insns_dump_p): New extern.
13859         * final.c (final_insns_dump_p): New variable.
13860         (rest_of_clean_state): Set it before -fdump-final-insns=
13861         dumping, clear afterwards.
13862         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
13863         MEM_ALIAS_SET on MEMs.
13864
13865 2010-03-26  David S. Miller  <davem@davemloft.net>
13866
13867         * configure.ac: Fix sparc GOTDATA_OP bug check.
13868         * configure: Rebuild.
13869
13870 2010-03-26  Alan Modra  <amodra@gmail.com>
13871
13872         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
13873
13874 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13875
13876         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
13877         TLS_SECTION_ASM_FLAG.
13878
13879 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
13880
13881         PR bootstrap/43511
13882         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
13883         Clear first_function_block_is_cold.
13884
13885         PR c/43385
13886         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
13887         argument if the argument is truth_value_p.
13888
13889 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13890
13891         * config/rs6000/constraints.md: Update copyright year for my changes.
13892
13893         PR target/43484
13894         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
13895         used in reg+reg addressing, swap registers.
13896
13897 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
13898
13899         PR debug/43293
13900         * target.h (struct gcc_target): Add code_end hook.
13901         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
13902         if not yet defined.
13903         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
13904         * toplev.c (compile_file): Call targetm.asm_out.code_end
13905         hook before unwind info/debug info output.
13906         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
13907         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
13908         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
13909         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
13910         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
13911         * config/i386/i386.c (ix86_file_end): Renamed to...
13912         (ix86_code_end): ... this.  Make static.  Don't call
13913         file_end_indicate_exec_stack.  Emit unwind info using
13914         final_start_function/final_end_function.
13915         (darwin_x86_file_end): Remove.
13916         (TARGET_ASM_CODE_END): Define.
13917         * config/i386/i386.h (TARGET_ASM_FILE_END,
13918         NEED_INDICATE_EXEC_STACK): Don't define.
13919         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
13920         (TARGET_ASM_FILE_END): Define to darwin_file_end.
13921         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
13922         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
13923
13924         PR target/43498
13925         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
13926         at the beginning and final_end_function at the end.
13927         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
13928
13929 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13930
13931         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
13932         and Sun as TLS syntax.
13933         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
13934         * configure: Regenerate.
13935         * config.in: Regenerate.
13936         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
13937         (default_elf_asm_named_section): Use it.
13938         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
13939         (i386_output_dwarf_dtprel): Likewise.
13940         (output_addr_const_extra): Likewise.
13941         (output_pic_addr_const): Lowercase @GOTTPOFF.
13942         (output_addr_const_extra): Likewise.
13943         (output_pic_addr_const): Lowercase @GOTNTPOFF.
13944         (output_addr_const_extra): Likewise.
13945         (output_pic_addr_const): Lowercase @INDNTPOFF.
13946         (output_addr_const_extra): Likewise.
13947         (output_pic_addr_const): Lowercase @NTPOFF.
13948         (output_addr_const_extra): Likewise.
13949         (output_pic_addr_const): Lowercase @TPOFF.
13950         (output_addr_const_extra): Likewise.
13951         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
13952         (*tls_global_dynamic_64): Likewise.
13953         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
13954         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
13955
13956         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
13957         (ASM_OUTPUT_TLS_COMMON): Use it.
13958         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
13959
13960         PR target/38118
13961         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
13962         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13963         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
13964         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
13965         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
13966         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
13967
13968 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13969
13970         * config/i386/i386.c (override_options): Don't accept
13971         -mtls-dialect=sun any longer.
13972         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
13973         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
13974         (*tls_local_dynamic_base_32_sun): Likewise.
13975         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
13976
13977 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
13978
13979         PR debug/43508
13980         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
13981         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
13982
13983         PR debug/43479
13984         * ira.c (adjust_cleared_regs): New function.
13985         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
13986
13987         PR debug/19192
13988         PR debug/43479
13989         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
13990         from gimple_block.
13991         * expr.c (expand_expr_real): Restore previous
13992         curr_insn_source_location and curr_insn_block after
13993         expand_expr_real_1 call.
13994         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
13995         instead of expand_expr_real_1.
13996
13997 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
13998
13999         PR rtl-optimization/43413
14000         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14001         hard regs too.
14002
14003 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
14004
14005         PR target/43348
14006         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14007         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14008
14009 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14010
14011         * config/i386/i386.c (ix86_target_string): Add -mfma.
14012         Fix a typo in comment.
14013
14014 2010-03-22  Mike Stump  <mikestump@comcast.net>
14015
14016         PR target/23071
14017         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14018         Don't overly align based upon packed packed fields.
14019
14020 2010-03-22  Jason Merrill  <jason@redhat.com>
14021
14022         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14023         Use () rather than [], and move before the element type.
14024
14025 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14026
14027         * doc/configfiles.texi (Configuration Files): Removed
14028         fixinc/Makefile*, intl/Makefile.*.
14029         * doc/makefile.texi: Fixed markup. Abstract from version
14030         control system used.
14031         (Makefile): Removed obsolete gcc/java/parse.y example.
14032         * doc/sourcebuild.texi: Likewise.
14033         (Top Level): Added config, gnattools, libdecnumber, libgcc,
14034         libgomp, libssp.  Removed fastjar.
14035         (Miscellaneous Docs): Clarify location.
14036         Added COPYING3, COPYING3.LIB.
14037         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14038
14039 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14040
14041         PR target/38085
14042         * config/i386/i386.c (x86_function_profiler)
14043         [!NO_PROFILE_COUNTERS]: Fix typo.
14044         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14045         instead of callq.
14046
14047 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
14048             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14049
14050         * doc/sourcebuild.texi (Test Directives): Split into six
14051         subsections, with most of the current text in new subsections
14052         Directives, Selectors, and Final Actions.
14053         (Directives): Split list of test directives into multiple
14054         subsubsections.
14055         (Selectors): Describe use and syntax of selectors.
14056         (Effective-Target Keywords): Describe all existing keywords.
14057         (Add Options): Describe features for dg-add-options.
14058         (Require Support): Describe variants of dg-require-support.
14059         (Final Actions): Describe commands to use in dg-final.
14060
14061 2010-03-22  Michael Matz  <matz@suse.de>
14062
14063         PR middle-end/43475
14064         * recog.c (validate_replace_rtx_group): Replace also in
14065         REG_EQUAL and REG_EQUIV notes.
14066
14067 2010-03-22  Richard Guenther  <rguenther@suse.de>
14068
14069         PR tree-optimization/43390
14070         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14071         sure vector extracts are type correct.
14072
14073 2010-03-22  Richard Guenther  <rguenther@suse.de>
14074
14075         PR middle-end/40106
14076         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14077         x * sqrt (x) even when optimizing for size if the target
14078         has native support for sqrt.
14079
14080 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
14081
14082         * varasm.c (make_decl_rtl_for_debug): Also clear
14083         flag_mudflap for the duration of make_decl_rtl call.
14084
14085         PR debug/43443
14086         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14087         locs from preserved VALUEs.
14088
14089 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14090
14091         PR middle-end/42718
14092         * pa.md (movmemsi): Set align to one if zero.
14093         (movmemdi): Likewise.
14094
14095 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
14096
14097         PR target/42321
14098         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14099         with their corresponding prologue pushes.
14100
14101 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
14102
14103         PR target/43156
14104         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14105         at the begining or end.
14106         (spu_expand_epilogue): Likewise.
14107
14108 2010-03-20  Richard Guenther  <rguenther@suse.de>
14109
14110         PR rtl-optimization/43438
14111         * combine.c (make_extraction): Properly zero-/sign-extend an
14112         extraction of the low part of a CONST_INT.  Also handle
14113         CONST_DOUBLE.
14114
14115 2010-03-19  Mike Stump  <mikestump@comcast.net>
14116
14117         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14118         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14119         (override_options): Use SUBTARGET32_DEFAULT_CPU.
14120
14121 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
14122
14123         PR c/43211
14124         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14125         an error.
14126
14127 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
14128
14129         PR rtl-optimization/42258
14130         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14131         use that may match DEF.
14132
14133         PR target/40697
14134         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14135         the cost of loading the constant rather than assuming
14136         COSTS_N_INSNS (1).
14137         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14138         outer code is AND, do the same tests as the andsi3 expander and
14139         return COSTS_N_INSNS (1) if and is cheap.
14140
14141         * optabs.c (avoid_expensive_constant): Fix formatting.
14142
14143 2010-03-19  Michael Matz  <matz@suse.de>
14144
14145         PR c++/43116
14146         * attribs.c (decl_attributes): When rebuilding a function pointer
14147         type use the same qualifiers as the original pointer type.
14148
14149 2010-03-19  Martin Jambor  <mjambor@suse.cz>
14150
14151         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14152         and is_gimple_ip_invariant_address.
14153
14154 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14155
14156         Revert
14157         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14158
14159         * config/arm/arm.c (arm_override_options): Turn off
14160         flag_dwarf2_cfi_asm for AAPCS variants.
14161
14162 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14163
14164         PR target/43399
14165         * config/arm/arm.c (emit_multi_reg_push): Update comments.
14166         Use PRE_MODIFY instead of PRE_DEC.
14167         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14168         (vfp_emit_fstmd): Likewise.
14169
14170 2010-03-19  Michael Matz  <matz@suse.de>
14171
14172         PR target/43305
14173         * builtins.c (expand_builtin_interclass_mathfn,
14174         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14175         if that fails.
14176
14177 2010-03-19  Richard Guenther  <rguenther@suse.de>
14178
14179         PR tree-optimization/43415
14180         * tree-ssa-pre.c (phi_translate): Split out worker to ...
14181         (phi_translate_1): ... this.
14182         (phi_translate): Move all caching here.  Cache all NARY
14183         and REFERENCE translations.
14184
14185 2010-03-19  David S. Miller  <davem@davemloft.net>
14186
14187         With help from Eric Botcazou.
14188         * config/sparc/sparc.c: Include dwarf2out.h.
14189         (emit_pic_helper): Delete.
14190         (pic_helper_symbol_name): Delete.
14191         (pic_helper_emitted_p): Delete.
14192         (pic_helper_needed): New.
14193         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14194         (get_pc_thunk_name): New.
14195         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
14196         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14197         Set pic_helper_needed to true.  Don't call emit_pic_helper.
14198         (sparc_expand_prologue): Update load_pic_register call.
14199         (sparc_output_mi_thunk): Likewise.
14200         (sparc_file_end): Emit a hidden comdat symbol for the PIC
14201         thunk if possible.  Output CFI information as needed.
14202
14203 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14204             Jack Howarth  <howarth@bromo.med.uc.edu>
14205
14206         PR target/36399
14207         * config/i386/i386.h: Fix ABI on darwin x86-32.
14208
14209 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
14210
14211         * tree.h: Declare make_decl_rtl_for_debug.
14212         * varasm.c (make_decl_rtl_for_debug): New.
14213         * dwarf2out.c (rtl_for_decl_location): Call it.
14214         * cfgexpand.c (expand_debug_expr): Call it.
14215
14216 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14217
14218         PR bootstrap/43399
14219         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14220         mem_mode.
14221
14222         PR bootstrap/43403
14223         * var-tracking.c (vt_init_cfa_base): Do nothing if
14224         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14225
14226 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
14227
14228         PR debug/42873
14229         * var-tracking.c (canonicalize_vars_star): New.
14230         (dataflow_post_merge_adjust): Use it.
14231
14232 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14233
14234         PR debug/43058
14235         * var-tracking.c (non_suitable_const): New function.
14236         (add_uses): For DEBUG_INSNs with constants, don't record any
14237         value, instead just the constant value itself.
14238         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14239         is not VAR_LOC_UNKNOWN_P, set var to the constant.
14240         (emit_notes_in_bb): Likewise.
14241         (emit_note_insn_var_location): For onepart variables if
14242         cur_loc is a VOIDmode constant, use DECL_MODE.
14243
14244 2010-03-18  Martin Jambor  <mjambor@suse.cz>
14245
14246         PR middle-end/42450
14247         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14248         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14249         all non-clones.  Moved call redirection...
14250         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14251         (cgraph_materialize_all_clones): Dispose of all
14252         combined_args_to_skip bitmaps.
14253         (verify_cgraph_node): Do not check for edges pointing to wrong
14254         nodes in inline clones.
14255         * tree-inline.c (copy_bb): Call
14256         cgraph_redirect_edge_call_stmt_to_callee.
14257         * ipa.c (cgraph_remove_unreachable_nodes): Call
14258         cgraph_node_remove_callees even when there are used clones.
14259
14260 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14261
14262         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14263
14264 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14265
14266         PR target/43383
14267         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14268         for 32bit.
14269
14270 2010-03-18  Michael Matz  <matz@suse.de>
14271
14272         PR middle-end/43419
14273         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14274         into sqrt(x) if we need to preserve signed zeros.
14275
14276 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
14277             Eric Botcazou  <ebotcazou@adacore.com>
14278
14279         PR rtl-optimization/43360
14280         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14281         note if we don't know its invariant status.
14282
14283 2010-03-18  Michael Matz  <matz@suse.de>
14284
14285         PR tree-optimization/43402
14286         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14287         PHI chains of ssa names registered for update.
14288
14289 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
14290
14291         PR target/42427
14292         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14293         non-offsettable and pre_modify update addressing.
14294         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14295         and "2" alternatives "#".
14296         (*movdd_softfloat32): Make all alternatives "#";
14297         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14298         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14299         (*movdf_softfloat32): Make all alternatives "#";
14300         (movdi): Use the new DIFD mode iterator to create a common splitter
14301         for movdi, movdf and movdd patterns.
14302
14303 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
14304
14305         * common.opt (dumpdir): Remove redundant tab.
14306
14307 2010-03-17  Martin Jambor  <mjambor@suse.cz>
14308
14309         PR tree-optimization/43347
14310         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14311         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14312
14313 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
14314
14315         PR rtl-optimization/42216
14316         * regrename.c (create_new_chain): New function, broken out from...
14317         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
14318         appending a use to an empty chain.
14319         (build_def_use): Remove previous changes that convert OP_INOUT to
14320         OP_OUT operands; instead detect the case where an OP_INOUT operand
14321         uses a previously untracked register and create an empty chain for it.
14322
14323 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14324
14325         * doc/extend.texi (Function Attributes): Rewrite unfinished
14326         sentence in ms_abi documentation.
14327
14328 2010-03-17  Alan Modra  <amodra@gmail.com>
14329
14330         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14331         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14332         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
14333         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
14334
14335 2010-03-16  Richard Henderson  <rth@redhat.com>
14336
14337         PR middle-end/43365
14338         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
14339         (lower_try_finally): Save and restore eh_seq around the expansion
14340         of the try-finally.
14341
14342 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14343
14344         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
14345         statements before splitting block.
14346
14347 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14348
14349         * doc/sourcebuild.texi (Testsuites): Fix markup.
14350         Use pathnames relative to gcc/testsuite.
14351         (Test Directives): Move description of how timeout is determined.
14352         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
14353         (C Tests): Correct gcc.misc-tests directory.
14354         Framework tests now live in gcc.test-framework.
14355
14356 2010-03-16  Richard Guenther  <rguenther@suse.de>
14357
14358         PR middle-end/43379
14359         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
14360         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
14361
14362 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14363             Alexandre Oliva  <aoliva@redhat.com>
14364
14365         PR tree-optimization/42917
14366         * lambda-code.c (remove_iv): Skip debug statements.
14367         (lambda_loopnest_to_gcc_loopnest): Likewise.
14368         (not_interesting_stmt): Debug statements are not interesting.
14369
14370 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
14371
14372         PR debug/43051
14373         PR debug/43092
14374         * cselib.c (cselib_preserve_constants,
14375         cfa_base_preserved_val): New static variables.
14376         (preserve_only_constants): New function.
14377         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
14378         clear its REG_VALUES.  If cselib_preserve_constants, don't
14379         empty the whole hash table, but preserve there VALUEs with constants,
14380         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
14381         (cselib_preserve_cfa_base_value): New function.
14382         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
14383         (cselib_init): Change argument to int bitfield.  Set
14384         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
14385         is in it.
14386         (cselib_finish): Clear cselib_preserve_constants and
14387         cfa_base_preserved_val.
14388         * cselib.h (enum cselib_record_what): New enum.
14389         (cselib_init): Change argument to int.
14390         (cselib_preserve_cfa_base_value): New prototype.
14391         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
14392         * dse.c (dse_step1): Likewise.
14393         * cfgcleanup.c (thread_jump): Likewise.
14394         * sched-deps.c (sched_analyze): Likewise.
14395         * gcse.c (local_cprop_pass): Likewise.
14396         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
14397         If FN is non-NULL, call the callback always and whenever it returns
14398         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
14399         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
14400         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
14401         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
14402         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
14403         * var-tracking.c: Include recog.h.
14404         (bb_stack_adjust_offset): Remove.
14405         (vt_stack_adjustments): Don't call it, instead just gather the
14406         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
14407         (adjust_stack_reference): Remove.
14408         (compute_cfa_pointer): New function.
14409         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
14410         (struct adjust_mem_data): New type.
14411         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
14412         functions.
14413         (get_address_mode): New function.
14414         (replace_expr_with_values): Use it.
14415         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
14416         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
14417         (adjust_sets): Remove.
14418         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
14419         Use get_address_mode.
14420         (get_adjusted_src): Remove.
14421         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
14422         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
14423         (add_with_sets): Don't call adjust_sets.
14424         (fp_setter, vt_init_cfa_base): New functions.
14425         (vt_initialize): Change return type to bool.  Move most of pool etc.
14426         initialization to the beginning of the function from end.  Pass
14427         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
14428         If !frame_pointer_needed, call vt_stack_adjustment before mos
14429         vector is filled, call vt_init_cfa_base if argp/framep has been
14430         eliminated to sp.  If frame_pointer_needed and argp/framep has
14431         been eliminated to hard frame pointer, set
14432         hard_frame_pointer_adjustment and call vt_init_cfa_base after
14433         encountering fp setter in the prologue.  For MO_ADJUST, call
14434         log_op_type before pusing the op into mos vector, not afterwards.
14435         Call adjust_insn before cselib_process_insn/add_with_sets,
14436         call cancel_changes (0) afterwards.
14437         (variable_tracking_main_1): Adjust for vt_initialize calling
14438         vt_stack_adjustments and returning whether it succeeded or not.
14439
14440 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
14441
14442         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
14443         debug statements.
14444
14445 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
14446
14447         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
14448         has been set.
14449         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
14450         drap_reg has not been set.
14451
14452 2010-03-15  Michael Matz  <matz@suse.de>
14453
14454         PR middle-end/43300
14455         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
14456         use it to expand block copies.
14457         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14458         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
14459         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
14460
14461 2010-03-15  Richard Guenther  <rguenther@suse.de>
14462
14463         PR tree-optimization/43367
14464         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
14465         elimination check.
14466
14467 2010-03-15  Richard Guenther  <rguenther@suse.de>
14468
14469         PR tree-optimization/43317
14470         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
14471
14472 2010-03-15  Martin Jambor  <mjambor@suse.cz>
14473
14474         PR tree-optimization/43141
14475         * tree-sra.c (create_abstract_origin): New function.
14476         (modify_function): Call create_abstract_origin.
14477
14478 2010-03-15  Chris Demetriou  <cgd@google.com>
14479
14480         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
14481         wasn't copied.
14482
14483 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14484
14485         PR middle-end/43354
14486         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
14487         call insert_out_of_ssa_copy for default definitions.
14488
14489 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14490
14491         * graphite-clast-to-gimple.c (my_long_long): Defined.
14492         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
14493         * graphite-sese-to-poly.c (my_long_long): Defined.
14494         (scop_ivs_can_be_represented): Use it.
14495
14496 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14497
14498         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
14499         graphite-max-bbs-per-function, and loop-block-tile-size.
14500         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
14501         with "maximum".
14502         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
14503
14504 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14505
14506         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
14507         forward declaration.
14508         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
14509         (add_upper_bounds_from_estimated_nit): New.
14510         (build_loop_iteration_domains): Use it.
14511
14512 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14513
14514         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
14515
14516 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14517
14518         PR middle-end/43306
14519         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
14520         should be an INTEGER_CST.  Also handle CASE_CONVERT.
14521
14522 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14523
14524         * graphite.c (graphite_initialize): To bound the number of bbs per
14525         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14526         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
14527         * doc/invoke.texi: Document it.
14528
14529 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14530
14531         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
14532         * graphite-sese-to-poly.h (build_poly_scop): Same.
14533
14534 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14535
14536         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
14537         the number of parameters in the scop.  Use as an upper bound
14538         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
14539         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
14540         * doc/invoke.texi: Document it.
14541
14542 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
14543
14544         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
14545         * doc/c-tree.texi: Remove.
14546         * doc/generic.texi: Merge c-tree.texi here.
14547         * doc/gccint.texi (Trees): Remove menu entry.
14548         (c-tree.texi): Remove @include.
14549         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
14550         * doc/languages.texi (Reading RTL): Ditto.
14551
14552 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
14553
14554         PR target/42869
14555         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
14556
14557 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14558
14559         PR middle-end/42431
14560         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
14561         code added to work around reload clobbering CONST insns.
14562
14563 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
14564
14565         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
14566         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
14567         (cselib_preserve_only_values): Remove retain argument, don't
14568         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
14569         * cselib.h (cselib_preserve_only_values): Remove retain argument.
14570         * var-tracking.c (micro_operation): Move insn field before union.
14571         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
14572         (struct variable_tracking_info_def): Remove n_mos field, change
14573         mos into a vector of micro_operations.
14574         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
14575         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
14576         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
14577         changing into a vector.
14578         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
14579         come before all other uops generated by add_stores.
14580         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
14581         argument removal.
14582         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
14583         a vector.  Run just one pass over the bbs instead of separate counting
14584         and computation phase.
14585         (vt_finalize): Free VTI (bb)->mos vector instead of array.
14586
14587         PR debug/43329
14588         * tree-inline.c (remap_decls): Put old_var rather than origin_var
14589         into *nonlocalized_list vector.
14590         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
14591         even if origin is non-NULL.
14592         (gen_variable_die): Likewise.
14593         (process_scope_var): Don't change origin.
14594         (gen_decl_die): Likewise.
14595         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
14596         before adding new edges instead of after it, fix moving over
14597         debug stmts.
14598
14599 2010-03-11  David S. Miller  <davem@davemloft.net>
14600
14601         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
14602         of four.
14603         * configure: Rebuild.
14604
14605 2010-03-11  Martin Jambor  <mjambor@suse.cz>
14606
14607         PR tree-optimization/43257
14608         * tree.c (assign_assembler_name_if_neeeded): New function.
14609         (free_lang_data_in_cgraph): Assembler name assignment moved to the
14610         above new function.
14611         * tree.h (assign_assembler_name_if_neeeded): Declare.
14612         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
14613         the function if needed.
14614
14615 2010-03-11  Chris Demetriou  <cgd@google.com>
14616
14617         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
14618         include/stdint-gcc.h, and include/stdint.h world-readable.
14619
14620 2010-03-11  Richard Guenther  <rguenther@suse.de>
14621
14622         PR tree-optimization/43255
14623         * tree-vrp.c (process_assert_insertions_for): Do not insert
14624         asserts for trivial conditions.
14625
14626 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14627
14628         PR tree-optimization/43280
14629         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
14630         generation.  Move calculation of size out of the if branch.
14631         (find_bswap): Modify compare number generation.
14632
14633 2010-03-11  Richard Guenther  <rguenther@suse.de>
14634
14635         PR lto/43200
14636         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
14637         (input_gimple_stmt): Fixup handled component types during
14638         operand read.  Also fix up decls in ADDR_EXPRs.
14639
14640 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
14641
14642         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
14643         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
14644
14645 2010-03-10  Jan Hubicka  <jh@suse.cz>
14646
14647         PR c/43288
14648         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
14649         * varasm.c (get_variable_section): Don't do that here...
14650         (make_decl_rtl): ... and here.
14651         (do_assemble_alias): Produce decl RTL.
14652         (assemble_alias): Likewise.
14653
14654 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14655
14656         PR debug/43290
14657         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
14658         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
14659         of fde->vdrap_reg.
14660         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
14661         (based_loc_descr): Only express drap or vdrap regno based expressions
14662         using DW_OP_fbreg when not optimizing.
14663         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
14664         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
14665         REG_CFA_SET_VDRAP note.
14666
14667 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
14668
14669         PR tree-optimization/43236
14670         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
14671         error in calculation of base address in reverse iteration case.
14672         (generate_builtin): Take number of latch executions if the statement
14673         is in the latch.
14674
14675 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
14676
14677         PR middle-end/42859
14678         * tree-eh.c: Include pointer-set.h.
14679         (lower_eh_dispatch): Filter out duplicate case labels and
14680         remove the unneeded edge when the label is unused.  Return
14681         true when some edges are removed.
14682         (execute_lower_eh_dispatch): When any lowering resulted in
14683         removing an edge, also delete unreachable blocks.
14684
14685 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14686
14687         PR bootstrap/43287
14688         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14689         UNSPEC_MACHOPIC_OFFSET.
14690
14691 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
14692
14693         PR target/43294
14694         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
14695         (m68k_delegitimize_address): New function.
14696
14697 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
14698
14699         PR debug/43299
14700         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
14701
14702         PR debug/43299
14703         * var-tracking.c (adjust_sets): New function.
14704         (count_with_sets, add_with_sets): Use it.
14705         (get_adjusted_src): New inline function.
14706         (add_stores): Use it.
14707
14708         PR debug/43304
14709         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
14710         call cselib_dummy_expand_value_rtx_cb instead of
14711         cselib_expand_value_rtx_cb.
14712
14713         PR debug/43293
14714         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
14715         * config/i386/i386.c: Include debug.h and dwarf2out.h.
14716         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
14717         and .cfi_endproc around the pic thunks.
14718         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
14719         all queued unwind info register saves are saved before the call.
14720         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
14721         considered as sp-=4 for unwind info and the pop as sp+=4 which
14722         also clobbers dest, but doesn't actually restore it.
14723
14724         PR debug/43290
14725         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
14726         RTX_FRAME_RELATED_P.
14727
14728 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14729
14730         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
14731         whitespaces in output template.
14732
14733 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14734
14735         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
14736         out array boundary.
14737
14738 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
14739
14740         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
14741         builtins.exp in a separate job.
14742
14743 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14744
14745         * graphite-sese-to-poly.c (add_param_constraints): Use
14746         lower_bound_in_type and upper_bound_in_type.
14747
14748 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14749
14750         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
14751         instead of unsigned_type_node.
14752
14753 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14754             Reza Yazdani  <reza.yazdani@amd.com>
14755
14756         PR middle-end/43065
14757         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
14758         on pointer type parameters.
14759
14760 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
14761
14762         PR middle-end/42644
14763         PR middle-end/42130
14764         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
14765         handle conversions from pointer to integers.
14766         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
14767         induction variable, to be able to work with code generated by CLooG.
14768         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
14769         (build_poly_scop): Bail out if we cannot codegen a loop.
14770
14771 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
14772
14773         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
14774         code generation with gloog_error.
14775
14776 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14777
14778         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
14779         Call fold_convert on all the returned values.
14780         (expand_scalar_variables_expr): Pass to
14781         expand_scalar_variables_ssa_name the type of the resulting expression.
14782
14783 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14784
14785         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
14786         ppl_min_for_le_pointset.
14787         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
14788         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
14789
14790 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14791
14792         * graphite-dependences.c (map_into_dep_poly): Removed.
14793         (dependence_polyhedron_1): Use combine_context_id_scat.
14794
14795 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14796
14797         * graphite-poly.h (struct poly_scattering): Add layout documentation.
14798         (struct poly_bb): Same.
14799         (combine_context_id_scat): New.
14800
14801 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14802
14803         PR middle-end/42326
14804         * sese.c (name_defined_in_loop_p): Return false for default
14805         definitions.
14806
14807 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14808
14809         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
14810         and clean up the logic.
14811
14812 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14813
14814         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
14815         early return.
14816
14817 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
14818
14819         * var-tracking.c (remove_cselib_value_chains): Define only for
14820         ENABLE_CHECKING.
14821         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
14822         delete_slot_part, emit_notes_for_differences_1): Don't call
14823         remove_cselib_value_chains here.
14824         (set_slot_part, emit_notes_for_differences_2): Don't call
14825         add_cselib_value_chains here.
14826         (preserved_values): New vector.
14827         (preserve_value): New function.
14828         (add_uses, add_stores, vt_add_function_parameters): Use it
14829         instead of cselib_preserve_value.
14830         (changed_values_stack): New vector.
14831         (check_changed_vars_0): New function.
14832         (check_changed_vars_1, check_changed_vars_2): Use it.
14833         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
14834         changed_values_stack VALUEs.
14835         (vt_emit_notes): For all preserved_values call
14836         add_cselib_value_chains.  If ENABLE_CHECKING call
14837         remove_cselib_value_chains before verifying value_chains is empty.
14838         Initialize and free changed_values_stack.
14839         (vt_initialize): Initialize preserved_values.
14840         (vt_finalize): Free preserved_values.
14841
14842 2010-03-08  Richard Guenther  <rguenther@suse.de>
14843
14844         PR tree-optimization/43269
14845         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
14846         region detection.
14847
14848 2010-03-08  Martin Jambor  <mjambor@suse.cz>
14849
14850         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
14851         (ipa_is_param_called): Removed.
14852         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
14853         (ipa_print_node_params): Do not print the called flag.
14854         (ipa_write_node_info): Do not stream the called flag.
14855         (ipa_read_node_info): Likewise.
14856
14857 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
14858
14859         PR debug/43176
14860         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
14861         * cselib.c (struct expand_value_data): Add dummy field.
14862         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
14863         dummy to false.
14864         (cselib_dummy_expand_value_rtx_cb): New function.
14865         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
14866         any rtl.
14867         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
14868         * var-tracking.c: Include pointer-set.h.
14869         (variable): Change n_var_parts to char from int.  Add
14870         cur_loc_changed and in_changed_variables fields.
14871         (variable_canonicalize): Remove.
14872         (shared_var_p): New inline function.
14873         (unshare_variable): Maintain cur_loc_changed and
14874         in_changed_variables fields.  If var was in changed_variables,
14875         replace it there with new_var.  Just copy cur_loc instead of
14876         resetting it to something else.
14877         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
14878         (dataflow_set_union): Don't call variable_canonicalize.
14879         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
14880         of their DEBUG_EXPR_TREE_DECLs.
14881         (canonicalize_loc_order_check): Verify that cur_loc is NULL
14882         and in_changed_variables and cur_loc_changed is false.
14883         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
14884         and cur_loc_changed.  Don't update cur_loc here.
14885         (variable_merge_over_src): Don't call variable_canonicalize.
14886         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
14887         removing loc that is equal to cur_loc, clear cur_loc,
14888         set cur_loc_changed and ensure variable_was_changed is called.
14889         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
14890         compare pointers in cur_loc check, if it is equal to loc,
14891         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
14892         (variable_different_p): Remove compare_current_location argument,
14893         don't compare cur_loc.
14894         (dataflow_set_different_1): Adjust variable_different_p caller.
14895         (variable_was_changed): If dv had some var in changed_variables
14896         already, reset in_changed_variables flag for it and propagate
14897         cur_loc_changed over to the new variable.  On empty var
14898         always set cur_loc_changed.  Set in_changed_variables on whatever
14899         var is added to changed_variables.
14900         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
14901         Use shared_var_p.  When removing loc that is equal to cur_loc,
14902         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
14903         end, don't set it to something else, just call variable_was_changed.
14904         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
14905         loc being removed, clear cur_loc and set cur_loc_changed.
14906         Set cur_loc_changed if all locations have been removed.
14907         (struct expand_loc_callback_data): New type.
14908         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
14909         allocated.  Always create SUBREGs if simplify_subreg failed.
14910         Prefer to use cur_loc, when that fails and still in
14911         changed_variables (and seen first time) recompute it.  Set
14912         cur_loc_changed of variables which had to change cur_loc and
14913         compute elcd->cur_loc_changed if any of the subexpressions used
14914         had to change cur_loc.
14915         (vt_expand_loc): Adjust to pass arguments in
14916         expand_loc_callback_data structure.
14917         (vt_expand_loc_dummy): New function.
14918         (emitted_notes): New variable.
14919         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
14920         that weren't used for any other decl in current
14921         emit_notes_for_changes call call vt_expand_loc_dummy to update
14922         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
14923         first loc_chain location if NULL before.  Always use just
14924         cur_loc instead of first loc_chain location.  When cur_loc_changed
14925         is false, when not --enable-checking=rtl just don't emit any note.
14926         When rtl checking, compute the note and assert it is the same
14927         as previous note.  Clear cur_loc_changed and in_changed_variables
14928         at the end before removing from changed_variables.
14929         (check_changed_vars_3): New function.
14930         (emit_notes_for_changes): Traverse changed_vars to call
14931         check_changed_vars_3 on each changed var.
14932         (emit_notes_for_differences_1): Clear cur_loc_changed and
14933         in_changed_variables.  Recompute cur_loc of new_var.
14934         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
14935         (vt_emit_notes): Initialize and destroy emitted_notes.
14936
14937 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
14938
14939         PR rtl-optimization/42220
14940         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
14941         Use verify_reg_tracked to determine if we should use OP_OUT rather
14942         than OP_INOUT.
14943         (build_def_use): If we see an in-out operand for a register that we
14944         know nothing about, treat is an output if possible, fail the block if
14945         not.
14946
14947 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
14948
14949         PR debug/42897
14950         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
14951         permanently.
14952
14953 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
14954
14955         PR debug/42897
14956         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
14957         uses of relevant DEFs that are dead outside the loop too.
14958
14959 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
14960
14961         * var-tracking.c (dataflow_set_merge): Swap src and src2.
14962         Reverted:
14963         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
14964         PR debug/41371
14965         * var-tracking.c (values_to_unmark): New variable.
14966         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
14967         values_to_unmark vector.  Moved body to...
14968         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
14969         instead queue it into values_to_unmark vector.
14970         (vt_find_locations): Free values_to_unmark vector.
14971
14972 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
14973
14974         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
14975         (site.exp): Export them when plugins are enabled.
14976
14977 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
14978
14979         PR middle-end/42326
14980         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
14981         that contain scevs.
14982         (chrec_fold_multiply): Same.
14983
14984 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
14985
14986         PR c/43248
14987         * c-decl.c (build_compound_literal): Return early if init is
14988         an error_mark_node.
14989
14990 2010-03-04  Martin Jambor  <mjambor@suse.cz>
14991
14992         PR tree-optimization/43164
14993         PR tree-optimization/43191
14994         * tree-sra.c (type_consists_of_records_p): Reject records with
14995         zero-size bit-fields at the end.
14996
14997 2010-03-04  Mike Stump  <mikestump@comcast.net>
14998
14999         * Makefile.in (TAGS): Remove *.y.
15000
15001 2010-03-04  Richard Guenther  <rguenther@suse.de>
15002
15003         PR tree-optimization/40761
15004         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15005         in reverse order.
15006         (my_rev_post_order_compute): New function.
15007         (init_pre): Call it.
15008
15009 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15010
15011         PR middle-end/43209
15012         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15013         decrease the cost of an IV candidate when the cost is infinite.
15014
15015 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15016
15017         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15018         Use '3DNow!' for the extension of that name, ensure normal space
15019         after the string.
15020         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15021
15022 2010-03-03  Jeff Law  <law@redhat.com>
15023
15024         * PR middle-end/32693
15025         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15026         than gen_rtx_SUBREG.
15027         (extract_bit_field_1): Likewise.
15028
15029 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
15030
15031         * doc/sourcebuild.texi (Test directives): Document that arguments
15032         include-opts and exclude-opts are now optional for dg-skip-if,
15033         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15034
15035 2010-03-03  Jason Merrill  <jason@redhat.com>
15036
15037         PR c++/12909
15038         * cgraph.h (varpool_node): Add extra_name field.
15039         * varpool.c (varpool_extra_name_alias): New.
15040         (varpool_assemble_decl): Emit extra name aliases.
15041         (varpool_mark_needed_node): Look past an extra name alias.
15042         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15043         * lto-streamer-in.c (lto_input_tree): Read it.
15044         * lto-streamer-out.c (output_unreferenced_globals): Write it.
15045
15046 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
15047
15048         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15049         (sparc*-*-solaris2*): ...this.
15050
15051 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
15052
15053         PR debug/43229
15054         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15055         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
15056         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15057         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15058
15059         PR debug/43237
15060         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15061         fallthrough to default handling, just with want_address 0 instead of 2.
15062         For single element lists, add_AT_loc directly, otherwise create an
15063         artificial variable DIE and stick location list to it.
15064
15065         PR debug/43177
15066         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15067         (VAL_EXPR_HAS_REVERSE): Define.
15068         (reverse_op): New function.
15069         (add_stores): For reversible operations add an extra MO_VAL_USE.
15070
15071 2010-03-02  Jason Merrill  <jason@redhat.com>
15072
15073         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15074
15075 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
15076
15077         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15078         (sparc64-*-linux*): Likewise.
15079         (sparc64-*-solaris2*): Include assembler files before linker ones.
15080         (sparc-*-solaris2*): Simplify and reorder to match previous case.
15081         * config/sparc/gas.h: Delete.
15082         * config/sparc/sol2-64.h: Add copyright notice.
15083         * config/sparc/sol2-gas-bi.h: Likewise.
15084         * config/sparc/sol2-gld.h: Likewise.
15085         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15086         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15087         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15088         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15089         (sparc_elf_asm_named_section): Rename into...
15090         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
15091
15092 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
15093
15094         * config/alpha/alpha.c (override_options): Fix -mtune error message.
15095
15096 2010-03-02  Jeff Law  <law@redhat.com>
15097
15098         PR middle-end/42431
15099         * reload1.c (rtx_p, substitute_stack): Declare.
15100         (substitute): Record addresses of changed rtxs.
15101         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15102         Restore the original rtx when complete.
15103         (reload): Free subsitute_stack when complete.
15104
15105 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
15106
15107         * doc/gccint.texi (menu): Add Testsuites as a chapter.
15108         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15109         new chapter.
15110         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15111         LTO Testing, gcov Testing, profopt Testing, compat Testing,
15112         Torture Tests): Change from subsection to section.
15113
15114 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
15115             Steven Bosscher  <steven@gcc.gnu.org>
15116
15117         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15118         instead of bb.
15119
15120 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
15121
15122         PR middle-end/42640
15123         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15124         the assignment from the new induction variable to the assignment
15125         of the value from the original loop PHI function.
15126
15127 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
15128             Daniel Jacobowitz  <dan@codesourcery.com>
15129
15130         * doc/sourcebuild.texi (Test directives): Clarify options to
15131         dg-skip-if.
15132
15133 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15134
15135         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15136         Disable cfi directives unless GCC and gas agree on using read-only
15137         .eh_frame sections for 64-bit.
15138         * configure: Regenerate.
15139
15140 2010-03-01  Richard Guenther  <rguenther@suse.de>
15141
15142         PR tree-optimization/43220
15143         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15144         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15145
15146 2010-03-01  Richard Guenther  <rguenther@suse.de>
15147             Martin Jambor  <mjambor@suse.cz>
15148
15149         PR middle-end/41250
15150         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15151         gimplified parameters.
15152
15153 2010-03-01  Christian Bruel  <christian.bruel@st.com>
15154
15155         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15156
15157 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
15158
15159         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15160
15161 2010-03-01  Richard Guenther  <rguenther@suse.de>
15162
15163         PR middle-end/43213
15164         * expr.c (expand_assignment): Use the alias-oracle to tell
15165         if the rhs aliases the result decl.
15166
15167 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15168
15169         PR pch/14940
15170         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15171         to sol_gt_pch_get_address.
15172         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15173         64-bit, SPARC and x86.
15174         (sol_gt_pch_get_address): New function.
15175
15176 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
15177
15178         * toplev.h (inform_n, error_n): Declare.
15179         * diagnostic.c (inform_n, error_n): New function.
15180
15181 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
15182
15183         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15184         has no rtl yet when processing local_decls, queue it and recheck
15185         if deferred stack allocation hasn't assigned it rtl.
15186
15187 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15188
15189         * config/sh/sh.c (unspec_bbr_uid): New.
15190         (gen_block_redirect): Use it instead of INSN_UID.
15191         (gen_far_branch): Likewise.
15192
15193 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
15194
15195         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15196         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15197
15198 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15199
15200         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15201         (Warning Options): -Wno-conversion-null is valid for
15202         Objective-C++ as well.
15203         * doc/tm.texi (Named Address Spaces): Likewise.
15204         * doc/plugins.texi (Plugins): Replace TABs with spaces.
15205         * doc/tree-ssa.texi (Tree SSA): Likewise.
15206
15207 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15208
15209         PR bootstrap/43202
15210         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15211         by default.  Don't set the default arch for
15212         i[34567]86-*-darwin*|x86_64-*-darwin*.
15213
15214 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15215
15216         PR bootstrap/43202
15217         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15218         default.  Set the default 32bit/64bit archs with $with_arch
15219         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15220
15221 2010-02-27  Richard Guenther  <rguenther@suse.de>
15222
15223         PR tree-optimization/43186
15224         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15225         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15226         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15227         unroller iterations.
15228
15229 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15230
15231         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15232         required and i[34567]86-*-* targets don't support 64bit ISA.
15233
15234 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
15235
15236         PR ada/43096
15237         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15238         the same alias set.
15239
15240 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15241
15242         * config.gcc: Set the default arch at least to Prescott for
15243         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15244         if SSE math is enabled.
15245
15246 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15247
15248         * diagnostic.c (diagnostic_initialize): Update.
15249         (diagnostic_report_diagnostic): Test inhibit_notes_p for
15250         informative notes.
15251         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15252         (diagnostic_inhibit_notes): New.
15253         * toplev.c (process_options): inhibit notes with -fcompare-debug.
15254
15255 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15256
15257         PR c/20631
15258         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15259         * doc/standards.texi: Likewise.
15260         * doc/extend.texi: Likewise.
15261         * doc/trouble.texi: Likewise.
15262         * doc/cppopts.texi: Likewise.
15263         * doc/install.texi: Likewise.
15264         * c.opt (std=c90,std=gnu90): New options.
15265         * c-opts.c (c_common_handle_option): Handle them.
15266
15267 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15268
15269         PR c/24577
15270         * c-decl.c (undeclared_variable): Use an informative note.
15271
15272 2010-02-26  Richard Guenther  <rguenther@suse.de>
15273
15274         PR tree-optimization/43186
15275         * gimple.h (gimple_fold): Remove.
15276         * gimple.c (gimple_fold): Remove.  Inline into single user ...
15277         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15278         Try harder for conditions.
15279
15280 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15281
15282         PR debug/43190
15283         * function.c (used_types_insert): Don't skip through named pointer
15284         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
15285         and it is different from the main variant's type.
15286
15287 2010-02-26  Nick Clifton  <nickc@redhat.com>
15288
15289         * config/rx/rx.md (sminsi3): Remove bogus alternative.
15290
15291 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15292
15293         * config.gcc: Support --with-fpmath=sse for x86.
15294
15295         * config/i386/ssemath.h: New.
15296
15297         * doc/install.texi (--with-fpmath=sse): Documented.
15298
15299 2010-02-26  Richard Guenther  <rguenther@suse.de>
15300
15301         PR tree-optimization/43188
15302         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15303         vector types of over-aligned element type.
15304
15305 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
15306
15307         PR target/43175
15308         * config/i386/i386.c (expand_vec_perm_blend): Use correct
15309         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
15310
15311 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
15312
15313         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15314
15315 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15316
15317         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15318         * var-tracking.c: Include diagnostic.h.
15319         (debug_dv): New function.
15320         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15321
15322         PR debug/43160
15323         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15324         (add_value_chain, add_value_chains, remove_value_chain,
15325         remove_value_chains): Handle DEBUG_EXPRs.
15326         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15327
15328         PR debug/43161
15329         * regcprop.c (struct queued_debug_insn_change): New type.
15330         (struct value_data_entry): Add debug_insn_changes field.
15331         (struct value_data): Add n_debug_insn_changes field.
15332         (debug_insn_changes_pool): New variable.
15333         (free_debug_insn_changes, apply_debug_insn_changes,
15334         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
15335         (kill_value_one_regno): Call free_debug_insn_changes if needed.
15336         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
15337         fields.
15338         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
15339         changes for them.
15340         (copyprop_hardreg_forward_1): Don't call apply_change_group for
15341         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
15342         changes, call cprop_find_used_regs via note_stores.
15343         (copyprop_hardreg_forward): When copying vd from predecessor
15344         which has any queued DEBUG_INSN changes, make sure the pointers are
15345         cleared.  At the end call df_analyze and then if there are any
15346         DEBUG_INSN changes queued at the end of some basic block for still
15347         live registers, apply them.
15348         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
15349
15350 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
15351
15352         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
15353         (arm*-*-*): Ditto.
15354
15355 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
15356
15357         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
15358         targets.  Set the default with_cpu/with_arch from arch/cpu.
15359         Allow x86-64 and native for with_cpu/with_arch.
15360
15361 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
15362
15363         * ebitmap.c: Change calls to verify_popcount with calls to
15364         sbitmap_verify_popcount.
15365         (ebitmap_clear_bit): Fixed map->cacheindex test and
15366         map>cache update when bit clearing results in an empty
15367         element.
15368
15369 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
15370
15371         PR target/43154
15372         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
15373         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
15374         and support both V2DF and V2DI modes.
15375         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
15376         support both V2DF and V2DI modes.
15377         (general): Delete trailing whitespace from a few patterns.
15378
15379         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15380         V2DF/V2DI interleave high/low builtins.
15381
15382         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
15383         new VSX builtins.
15384
15385         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
15386         interleave high/low functions.
15387
15388 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15389
15390         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
15391         #pragma extern_prefix.
15392
15393 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
15394
15395         PR debug/43166
15396         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
15397         BLKmode, assert op0 is a MEM and just adjust its mode.
15398
15399         PR debug/43165
15400         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
15401         if bitpos isn't multiple of mode's bitsize.
15402
15403 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15404
15405         * c.opt (-ftemplate-depth=): New.
15406         (-ftemplate-depth-): Deprecate.
15407         * optc-gen.awk: Handle -ftemplate-depth=.
15408         * opth-gen.awk: Likewise.
15409         * c-opts.c (c_common_handle_option): Likewise.
15410         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
15411
15412 2010-02-24  Jason Merrill  <jason@redhat.com>
15413
15414         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
15415
15416 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15417
15418         * cfg.c (alloc_aux_for_block): Remove inline.
15419         (alloc_aux_for_edge): Likewise.
15420
15421 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15422
15423         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
15424
15425 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15426
15427         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
15428         * config/i386/sol2-gas.h: New file.
15429         * config.gcc (i[34567]86-*-solaris2*): Use it.
15430
15431 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15432
15433         PR c/43128
15434         * c-typeck.c (ep_convert_and_check): New.
15435         (build_conditional_expr): Use it.
15436         (build_binary_op): Likewise.
15437
15438 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
15439
15440         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
15441
15442         PR debug/43150
15443         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
15444         bounds even for -O+.
15445         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
15446         expr needs to have DECL_NAME set.
15447
15448 2010-02-24  Nick Clifton  <nickc@redhat.com>
15449
15450         * config/mep/mep.c: Include gimple.h.
15451         (mep_function_uses_sp): Delete unused function.
15452         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
15453         parameters.  Use unsigned integers to count args.  Return a
15454         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
15455
15456 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
15457
15458         PR target/43107
15459         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
15460         greater or equal to nelt instead of 2 * nelt.
15461         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
15462         with nelt - 1.
15463
15464 2010-02-23  Jason Merrill  <jason@redhat.com>
15465
15466         PR debug/42800
15467         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
15468         in cfun->local_decls even if they have register types.
15469
15470         PR c++/42837
15471         * stor-layout.c (place_field): Don't warn about unnecessary
15472         DECL_PACKED if the type is packed.
15473
15474 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
15475
15476         PR target/43139
15477         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
15478         GOTOFF relocs, even when the base reg isn't pic pointer.
15479
15480 2010-02-23  Michael Matz  <matz@suse.de>
15481
15482         PR debug/43077
15483         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
15484         (expand_gimple_basic_block): Generate and use debug temps if there
15485         are debug uses left after the last real use of TERed ssa names.
15486         Unlink debug immediate uses when they are expanded.
15487
15488 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15489
15490         PR 43123
15491         * config/i386/i386.c (override_options): Reorganise to provide
15492         better error messages.
15493
15494 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15495
15496         PR middle-end/43083
15497         * graphite-scop-detection.c (create_single_exit_edge): Move
15498         the call to find_single_exit_edge to....
15499         (create_sese_edges): ...here.  Don't handle multiple edges
15500         exiting the function.
15501         (build_graphite_scops): Don't handle multiple edges
15502         exiting the function.
15503
15504 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15505
15506         PR middle-end/43097
15507         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
15508         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
15509
15510 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15511
15512         PR middle-end/43026
15513         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
15514
15515 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15516
15517         PR c++/43126
15518         * c-typeck.c (convert_arguments): Print declaration location.
15519         * c-common.c (validate_nargs): Rename as
15520         builtin_function_validate_nargs.
15521         (check_builtin_function_arguments): Update.
15522
15523 2010-02-22  Richard Guenther  <rguenther@suse.de>
15524
15525         PR lto/43045
15526         * tree-inline.c (declare_return_variable): Use the type of
15527         the call stmt lhs if available.
15528
15529 2010-02-22  Duncan Sands  <baldrick@free.fr>
15530
15531         * passes.c (register_pass): Always consider all pass lists when
15532         ref_pass_instance_number is zero.
15533
15534 2010-02-22  Richard Guenther  <rguenther@suse.de>
15535
15536         PR tree-optimization/42749
15537         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
15538         parameter.  Do arithmetic in the original type.
15539         (update_accumulator_with_ops): Likewise.
15540         (adjust_accumulator_values): Adjust.
15541
15542 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15543
15544         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
15545         (QI to BLKmode splitter): New splitter.
15546
15547 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
15548
15549         * config/i386/i386.c (initial_ix86_tune_features): Turn on
15550         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
15551
15552 2010-02-22  Richard Guenther  <rguenther@suse.de>
15553
15554         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
15555
15556 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
15557
15558         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
15559         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
15560         ($(T)crti.o, $(T)crtn.o): Remove rules.
15561
15562 2010-02-21  Tobias Burnus  <burnus@net-b.de>
15563
15564         PR fortran/35259
15565         * doc/invoke.texi (-fassociative-math): Document that this
15566         option is automatically enabled for Fortran.
15567
15568 2010-02-20  David S. Miller  <davem@davemloft.net>
15569
15570         * configure.ac: Test if linker and assembler properly support
15571         GOTDATA_OP relocations.
15572         * configure: Rebuild.
15573         * config.in: Likewise.
15574         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
15575         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
15576         (movsi_high_pic): Likewise.
15577         (movdi_lo_sum_pic): Likewise.
15578         (movdi_high_pic): Likewise.
15579         (movsi_pic_gotdata_op): New pattern.
15580         (movdi_pic_gotdata_op): Likewise.
15581         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
15582         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
15583
15584 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
15585
15586         PR target/43067
15587         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
15588         attribute to ssemul.
15589         (xop_mulv2div2di3_high): Ditto.
15590
15591 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15592
15593         PR c++/35669
15594         * c.opt (Wconversion-null): New option.
15595         * doc/invoke.texi (Wconversion-null): Document.
15596
15597 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15598
15599         * common.opt (Wlarger-than-): Add Undocumented.
15600
15601 2010-02-19  Mike Stump  <mikestump@comcast.net>
15602
15603         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
15604
15605 2010-02-19  Jason Merrill  <jason@redhat.com>
15606
15607         PR target/40332
15608         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
15609         * configure: Likewise.
15610
15611 2010-02-20  Alan Modra  <amodra@gmail.com>
15612
15613         PR middle-end/42344
15614         * cgraph.h (cgraph_make_decl_local): Declare.
15615         * cgraph.c (cgraph_make_decl_local): New function.
15616         (cgraph_make_node_local): Use it.
15617         * cgraphunit.c (cgraph_function_versioning): Likewise.
15618         * ipa.c (function_and_variable_visibility): Likewise.
15619
15620 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15621
15622         PR bootstrap/43121
15623         * except.c (sjlj_emit_function_enter): Don't call
15624         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
15625         directly.
15626         * rtl.h (add_reg_br_prob_note): Remove prototype.
15627
15628 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15629
15630         PR 41779
15631         * c-common.c (conversion_warning): Remove widening conversions
15632         before checking the conversion of integers to reals.
15633
15634 2010-02-19  Mike Stump  <mikestump@comcast.net>
15635
15636         PR middle-end/43125
15637         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
15638
15639         PR objc/43061
15640         * cgraphunit.c (process_function_and_variable_attributes): Check
15641         DECL_PRESERVE_P instead of looking up attribute "used".
15642         * ipa-pure-const.c (check_decl): Likewise.
15643         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
15644         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
15645         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
15646         instead of attribute "used".
15647         * config/sol2-c.c (solaris_pragma_init): Likewise.
15648         (solaris_pragma_fini): Likewise.
15649
15650 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15651
15652         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
15653         Use XCNEW instead of xcalloc.
15654         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
15655         XNEW instead of xmalloc.
15656         (get_fields): Use XNEWVEC instead of xmalloc.
15657
15658         PR debug/43084
15659         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
15660         populate vars array.
15661         (create_new_general_access): For debug stmts just reset value.
15662         (get_stmt_accesses): For accesses within debug stmts just record them
15663         using add_access_to_acc_sites instead of preventing the peeling or
15664         counting them as accesses.
15665
15666         PR middle-end/42233
15667         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
15668
15669 2010-02-19  Richard Guenther  <rguenther@suse.de>
15670
15671         PR tree-optimization/42916
15672         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
15673         instructions.
15674
15675 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
15676
15677         * configure.ac: Replace all uses of changequote in macro arguments
15678         with proper quoting.
15679
15680 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15681
15682         PR middle-end/42233
15683         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
15684
15685 2010-02-19  Richard Guenther  <rguenther@suse.de>
15686
15687         PR tree-optimization/42944
15688         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
15689         test for aliasing with errno.
15690
15691 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15692
15693         PR middle-end/42233
15694         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
15695         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
15696         * dojump.c: Include output.h.
15697         (inv): New inline function.
15698         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
15699         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
15700         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
15701         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
15702         argument, pass it down to other calls.
15703         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
15704         add REG_BR_PROB note to the conditional jump.
15705         * cfgexpand.c (add_reg_br_prob_note): Removed.
15706         (expand_gimple_cond): Don't call it, add the probability
15707         as last argument to jumpif_1/jumpifnot_1.
15708         * Makefile.in (dojump.o): Depend on output.h.
15709         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
15710         callers.
15711         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
15712         * stmt.c (do_jump_if_equal): Likewise.
15713         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
15714         * loop-unswitch.c (compare_and_jump_seq): Likewise.
15715         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
15716         Likewise.
15717         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
15718         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
15719         jumpifnot_1 callers.
15720         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
15721         callers.
15722         (store_expr): Adjust jumpifnot caller.
15723         (store_constructor): Adjust jumpif caller.
15724
15725         PR middle-end/42233
15726         * gimplify.c (gimple_boolify): For __builtin_expect call
15727         gimple_boolify also on its first argument.
15728
15729 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
15730
15731         * configure.ac (gnu-unique-object): Wrap regexps using [] in
15732         changequote block.
15733         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
15734         * configure: Regenerated.
15735
15736 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15737
15738         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
15739         lang_hooks.types_compatible_p instead of comptypes.
15740
15741 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15742
15743         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
15744         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
15745         if __prefer_thumb__ is defined.
15746
15747 2010-02-18  Martin Jambor  <mjambor@suse.cz>
15748
15749         PR tree-optimization/43066
15750         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
15751         array with zero-sized element type.
15752
15753 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
15754
15755         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
15756         rtx, allocate struct var_loc_node here and return it to the
15757         caller, and only if it is actually needed.
15758         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
15759         move it earlier and return immediately if it returns NULL.
15760
15761 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
15762
15763         * config/sparc/gas.h: New file.  Restore
15764         TARGET_ASM_NAMED_SECTION to its ELF default.
15765         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
15766         check !HAVE_GNU_AS.
15767         * config/sparc/sparc.c (sparc_elf_asm_named_section):
15768         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
15769         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
15770         after sparc/sysv4.h.
15771
15772 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
15773
15774         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
15775
15776 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
15777
15778         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
15779         patterns from predicated pattern.
15780
15781 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
15782
15783         PR target/43103
15784         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
15785         for insn mnemonic suffix.
15786
15787 2010-02-17  Richard Guenther  <rguenther@suse.de>
15788
15789         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
15790         to loop PHI nodes.
15791
15792 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
15793
15794         PR debug/42918
15795         * caller-save.c (save_call_clobbered_regs): If BB ends with
15796         a DEBUG_INSN, move any notes in between last real insn and the last
15797         DEBUG_INSN after the last DEBUG_INSN.
15798
15799 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
15800
15801         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
15802         Fix return type.  Fix argument type.  Explain meaning of return value.
15803
15804 2010-02-16  Richard Guenther  <rguenther@suse.de>
15805
15806         PR tree-optimization/41043
15807         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
15808         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
15809         statements ...
15810         (vrp_visit_phi_node): ... but only for loop PHI nodes.
15811
15812 2010-02-16  Ira Rosen  <irar@il.ibm.com>
15813
15814         PR tree-optimization/43074
15815         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
15816         * tree-vect-loop.c (vect_analyze_loop_operations): Add
15817         vectorizable cycles in hybrid SLP check.
15818         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
15819
15820 2010-02-16  Richard Guenther  <rguenther@suse.de>
15821
15822         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
15823         (true_dependence): If memrefs_conflict_p computes must-alias
15824         trust it.  Move TBAA check after offset-based disambiguation.
15825         (canon_true_dependence): Likewise.
15826
15827 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
15828
15829         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
15830         * doc/invoke.texi: Document it.
15831         * var-tracking.c: Include toplev.h and params.h.
15832         (vt_find_locations): Return bool indicating success.  Compute
15833         hash sizes unconditionally.  Check new parameter, report.
15834         (variable_tracking_main_1): Check vt_find_locations results and
15835         retry.  Renamed from...
15836         (variable_tracking_main): ... this.  New wrapper to preserve
15837         flag_var_tracking_assignments.
15838         * Makefile.in (var-tracking.o): Adjust dependencies.
15839
15840 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
15841             Jakub Jelinek  <jakub@redhat.com>
15842
15843         PR target/42854
15844         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
15845         if weak_import attribute is present.
15846         * config/darwin.c (machopic_select_section): Likewise.
15847
15848 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
15849
15850         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
15851         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
15852         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
15853         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
15854
15855         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
15856         types.
15857
15858         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15859         Fix argument types.
15860
15861         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
15862         Rewrite text to refer to the names.
15863
15864 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
15865
15866         * config/i386/i386-builtin-types.def
15867         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
15868         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
15869         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
15870         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
15871         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
15872         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
15873         IX86_BUILTIN_VPERMIL2PS256.
15874         (MULTI_ARG_4_DF2_DI_I): Defined.
15875         (MULTI_ARG_4_DF2_DI_I1): Defined.
15876         (MULTI_ARG_4_SF2_SI_I): Defined.
15877         (MULTI_ARG_4_SF2_SI_I1): Defined.
15878         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
15879         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
15880         __builtin_ia32_vpermil2ps256.
15881         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
15882         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
15883         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
15884         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
15885         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
15886         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
15887         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
15888         CODE_FOR_xop_vpermil2v8sf3.
15889         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
15890         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
15891         * config/i386/xopintrin.h (_mm_permute2_pd): New.
15892         (_mm256_permute2_pd): New.
15893         (_mm_permute2_ps): New.
15894         (_mm256_permute2_ps): New.
15895
15896 2010-02-15  Nick Clifton  <nickc@redhat.com>
15897
15898         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
15899         boolean parameters.  Use emit_jump_insn when emitting a pop
15900         instruction containing a return insn.
15901         (push): Use 'true' rather than '1' as second parameter to F.
15902         (h8300_expand_prologue): Likewise.
15903         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
15904         (h8300_expand_epilogue): Likewise.
15905
15906 2010-02-15  Richard Guenther  <rguenther@suse.de>
15907
15908         PR middle-end/43068
15909         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
15910         if that is zero.
15911
15912 2010-02-15  Nick Clifton  <nickc@redhat.com>
15913
15914         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
15915         delta.
15916
15917 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
15918
15919         * intl.c (fake_ngettext): New function.
15920         * intl.h (fake_ngettext): Declare.
15921         (ngettext): Define macro.
15922         * collect2.c (notice_translated): New function.
15923         (main): Use notice_translated and ngettext.
15924         * collect2.h (notice_translated): Declare.
15925
15926 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
15927
15928         * reorg.c (delete_computation): Comment fixes.
15929         * caller-save.c (setup_save_areas): Idem.
15930         * sel-sched-dump.c (dump_lv_set): Idem.
15931         * rtl.def: Idem.
15932
15933 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15934
15935         * config/s390/s390.c (s390_sched_init): New function.
15936         (TARGET_SCHED_INIT): Target hook defined.
15937
15938 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
15939             Jack Howarth  <howarth@bromo.med.uc.edu>
15940             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
15941
15942         PR target/42982
15943         Partial revert of unintended change in fix for PR41605.
15944         * config/darwin.h: Fix typo.
15945         * config/darwin9.h: Same.
15946
15947 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
15948
15949         * c-pch.c (pch_init): Clear v.
15950
15951 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15952
15953         PR middle-end/42930
15954         * graphite-scop-detection.c (graphite_can_represent_scev): Call
15955         graphite_can_represent_init for MULT_EXPR.
15956
15957 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15958
15959         PR middle-end/42914
15960         PR middle-end/42530
15961         * graphite-sese-to-poly.c (remove_phi): New.
15962         (translate_scalar_reduction_to_array): Call remove_phi.
15963
15964 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15965
15966         PR middle-end/42771
15967         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
15968         * graphite-clast-to-gimple.h (gloog): Update declaration.
15969         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
15970         * graphite-poly.h (struct poly_bb): Add missing comments.
15971         (struct scop): Add poly_scop_p field.
15972         (POLY_SCOP_P): New.
15973         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
15974         * graphite.c (graphite_transform_loops): Build the polyhedral
15975         representation for each scop before code generation.
15976         * sese.c (rename_variables_in_operand): Removed.
15977         (rename_variables_in_expr): Return the renamed expression.
15978         (rename_sese_parameters): New.
15979         * sese.h (rename_sese_parameters): Declared.
15980
15981 2010-02-11  Richard Guenther  <rguenther@suse.de>
15982
15983         PR tree-optimization/42998
15984         * tree-ssa-pre.c (create_expression_by_pieces): Treat
15985         POINTER_PLUS_EXPR properly.
15986
15987 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15988             Changpeng Fang  <changpeng.fang@amd.com>
15989
15990         PR middle-end/40886
15991         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
15992         the cost of an IV candidate when the IV is used in a test against zero.
15993
15994         * gcc.dg/tree-ssa/ivopts-3.c: New.
15995
15996 2010-02-11  Richard Guenther  <rguenther@suse.de>
15997
15998         PR lto/41664
15999         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16000         pointer-vs-decl case by swapping refs.  Handle some cases
16001         of pointer-vs-decl disambiguations more conservatively.
16002         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16003         to false after expanding.
16004
16005 2010-02-11  Richard Guenther  <rguenther@suse.de>
16006
16007         PR driver/43021
16008         * gcc.c (process_command): Handle LTO file@offset case more
16009         appropriately.
16010
16011 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16012
16013         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16014         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
16015         of DEBUG_INSNs.
16016         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16017
16018         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16019         if MEM's mode size isn't DWARF2_ADDR_SIZE.
16020         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16021         Optimize eq/ne comparisons when both arguments are known to be
16022         zero-extended.
16023         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16024         Don't mask operands unnecessarily if they are known to be already
16025         zero-extended.
16026
16027 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
16028
16029         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16030         instead of loop.
16031
16032 2010-02-10  Richard Guenther  <rguenther@suse.de>
16033
16034         PR tree-optimization/43017
16035         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16036         for wrapping signed arithmetic.
16037
16038 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16039
16040         PR debug/43010
16041         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16042         if no debug info should be emitted for it.
16043
16044 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16045
16046         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16047         note when flag_exceptions is set.
16048
16049 2010-02-10  Duncan Sands  <baldrick@free.fr>
16050
16051         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16052
16053 2010-02-10  Richard Guenther  <rguenther@suse.de>
16054
16055         PR c/43007
16056         * tree.c (get_unwidened): Handle constants.
16057         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16058
16059 2010-02-10  Martin Jambor  <mjambor@suse.cz>
16060
16061         PR lto/42985
16062         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16063         check for variable argument counts independently.
16064
16065 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16066
16067         PR target/42841
16068         * config/sh/sh.c (find_barrier): Increase length for non delayed
16069         conditional branches.
16070
16071 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16072
16073         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16074
16075 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16076
16077         * builtins.c (set_builtin_user_assembler_name): Also handle
16078         ffs if int is smaller than word.
16079
16080 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
16081
16082         PR middle-end/42973
16083         * ira-conflicts.c (get_dup): Remove.
16084         (process_reg_shuffles): Add new parameter.  Use it as an
16085         additional guard for copy generation.
16086         (add_insn_allocno_copies): Rewrite.
16087
16088 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
16089
16090         * common.opt (fsched2-use-traces): Preserved for backward
16091         compatibility.
16092         * doc/invoke.texi: Remove the documentation about option
16093         -fsched2-use-traces.
16094         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16095         flag_sched2_use_traces.
16096         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16097         the backward compatibility flag section.
16098
16099 2010-02-09  Richard Guenther  <rguenther@suse.de>
16100
16101         PR tree-optimization/43008
16102         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16103         make HEAP variables initialized from global memory if they
16104         are not known builtin functions.
16105         (find_func_aliases): Adjust.
16106
16107 2010-02-09  Richard Guenther  <rguenther@suse.de>
16108
16109         PR tree-optimization/43000
16110         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16111         arithmetic manually.
16112
16113 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
16114
16115         PR tree-optimization/42931
16116         * tree-loop-linear.c (try_interchange_loops): Don't call
16117         double_int_mul if estimated_loop_iterations failed.
16118
16119 2010-02-08  Martin Jambor  <mjambor@suse.cz>
16120
16121         PR middle-end/42898
16122         * tree-sra.c (build_accesses_from_assign): Do not mark in
16123         should_scalarize_away_bitmap if stmt has volatile ops.
16124         (sra_modify_assign): Do not process assigns piecemeal if if stmt
16125         has volatile ops.
16126
16127 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
16128
16129         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16130
16131 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
16132
16133         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16134         before the pattern.
16135
16136 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
16137
16138         PR middle-end/42946
16139         * df-core.c (df_finish_pass): Change type of saved_flags to int.
16140
16141 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16142
16143         PR middle-end/42988
16144         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16145         to unknown_dependence.
16146         (graphite_legal_transform_dr): Handle the unknown_dependence.
16147         (graphite_carried_dependence_level_k): Same.
16148
16149 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16150
16151         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16152
16153 2010-02-07  Richard Guenther  <rguenther@suse.de>
16154
16155         PR middle-end/42991
16156         * expr.c (get_inner_reference): Always initialize *pbitsize.
16157
16158 2010-02-07  Richard Guenther  <rguenther@suse.de>
16159
16160         PR middle-end/42956
16161         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16162         new ARRAY_REFs on variable size element or minimal index arrays.
16163         Complete.
16164         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16165         gimple_fold_indirect_ref.
16166
16167 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
16168
16169         PR target/42957
16170         * arm.c (arm_override_options): Just return if the user has specified
16171         an invalid fpu name.
16172
16173 2010-02-03  Jason Merrill  <jason@redhat.com>
16174
16175         PR c++/42870
16176         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16177         i386_pe_maybe_record_exported_symbol.
16178
16179 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
16180
16181         PR target/42924
16182         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16183         (pa_delegitimize_address): New function.
16184
16185 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
16186
16187         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16188         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16189
16190 2010-02-05  Richard Guenther  <rguenther@suse.de>
16191
16192         PR lto/42762
16193         * lto-streamer-in.c (get_resolution): Deal with references
16194         to undefined functions.
16195
16196 2010-02-05  Richard Guenther  <rguenther@suse.de>
16197
16198         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16199         (fold_const_aggregate_ref): Likewise.
16200         (ccp_fold_stmt): Substitute loads.
16201         (maybe_fold_reference): Verify types before substituting.
16202         Unshare properly.
16203         (fold_gimple_assign): Unshare properly.
16204         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16205
16206 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
16207
16208         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16209         for rs6000_gen_cell_microcode.
16210
16211 2010-02-04  Richard Guenther  <rguenther@suse.de>
16212
16213         PR rtl-optimization/42952
16214         * dse.c (const_or_frame_p): Remove MEM handling.
16215
16216 2010-02-04  Nick Clifton  <nickc@redhat.com>
16217
16218         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16219         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16220         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16221         (mn10300_asm_output_mi_thunk): New function.
16222         (mn10300_can_output_mu_thunk): New function.
16223         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16224         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
16225         (FUNCTION_ARG): Delete incorrect comment.
16226
16227 2010-02-03  Jason Merrill  <jason@redhat.com>
16228
16229         PR c++/40138
16230         * fold-const.c (operand_equal_p): Handle erroneous types.
16231
16232 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16233
16234         * config/h8300/h8300.md (can_delay): Fix attibute condition.
16235
16236 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16237
16238         PR rtl-optimization/42941
16239         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16240         of xmalloc.
16241
16242 2010-02-03  Jason Merrill  <jason@redhat.com>
16243
16244         PR c++/35652
16245         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16246
16247 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
16248
16249         PR debug/42896
16250         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
16251         (cselib_reset_table): Renamed from...
16252         (cselib_reset_table_with_next_value): ... this.
16253         (cselib_get_next_uid): Renamed from...
16254         (cselib_get_next_unknown_value): ... this.
16255         * cselib.c (next_uid): Renamed from...
16256         (next_unknown_value): ... this.
16257         (cselib_clear_table): Adjust.
16258         (cselib_reset_table): Adjust.  Renamed from...
16259         (cselib_reset_table_with_next_value): ... this.
16260         (cselib_get_next_uid): Adjust.  Renamed from...
16261         (cselib_get_next_unknown_value): ... this.
16262         (get_value_hash): Use hash.
16263         (cselib_hash_rtx): Likewise.
16264         (new_cselib_val): Adjust.  Set and dump uid.
16265         (cselib_lookup_mem): Pass next_uid as hash.
16266         (cselib_subst_to_values): Likewise.
16267         (cselib_log_lookup): Dump uid.
16268         (cselib_lookup): Pass next_uid as hash.  Adjust.
16269         (cselib_process_insn): Adjust.
16270         (cselib_init): Initialize next_uid.
16271         (cselib_finish): Adjust.
16272         (dump_cselib_table): Likewise.
16273         * dse.c (canon_address): Dump value uid.
16274         * print-rtl.c (print_rtx): Print value uid.
16275         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16276         (dvuid): New type.
16277         (dv_uid): New function, sort of renamed from...
16278         (dv_htab_hash): ... this, reimplemented in terms of it and...
16279         (dv_uid2hash): ... this.  New.
16280         (variable_htab_eq): Drop excess assertions.
16281         (tie_break_pointers): Removed.
16282         (canon_value_cmp): Compare uids.
16283         (variable_post_merge_New_vals): Print uids.
16284         (vt_add_function_parameters): Adjust.
16285         (vt_initialize): Reset table.  Adjust.
16286
16287 2010-02-03  Richard Guenther  <rguenther@suse.de>
16288
16289         PR tree-optimization/42944
16290         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16291         (call_may_clobber_ref_p_1): Likewise.  Properly handle
16292         malloc and calloc clobbering errno.
16293
16294 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
16295
16296         * doc/invoke.texi: Fix name of sched1 dump.
16297
16298         * opts.c (decode_options): Set flag_tree_switch_conversion
16299         only conditionally on optimize >= 2.
16300
16301         * gcse.c: Assorted comment fixes in pass description.
16302
16303 2010-02-03  Anthony Green  <green@moxielogic.com>
16304
16305         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16306         nop padding in order to maintain alignment of storage location of
16307         target function address.
16308         (moxie_trampoline_init): Store target function address at newly
16309         aligned location.
16310         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16311         to 32.
16312         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16313
16314 2010-02-03  Richard Guenther  <rguenther@suse.de>
16315
16316         PR middle-end/42927
16317         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16318
16319 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16320
16321         * config.gcc: Reenable check for obsolete targets.
16322         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16323         mips-sgi-irix6.[0-4]*.
16324
16325 2010-02-02  Nick Clifton  <nickc@redhat.com>
16326
16327         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16328         constant size of 4 as being the same as 0.
16329         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16330         can take values in the range 0..4.
16331
16332 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
16333
16334         PR java/41991
16335         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
16336         as _darwin10_Unwind_FindEnclosingFunction().
16337         * libgcc-libsystem.ver: New.
16338
16339 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
16340
16341         PR target/41399
16342         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
16343         implicitly set registers.
16344
16345 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
16346
16347         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
16348         (arm_override_options): Allow automatic selection of the thread
16349         pointer register if thumb2.
16350         (legitimize_pic_address): Improve code sequences for Thumb2.
16351         (arm_call_tls_get_addr): Likewise.
16352         (legitimize_tls_address): Likewise.
16353         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
16354         (pic_load_addr_32bit): ... this.  New named pattern.
16355         * thumb2.md (pic_load_addr_thumb2): Delete.
16356         (pic_load_dot_plus_four): Delete.
16357         (tls_load_dot_plus_four): New named pattern.
16358
16359 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16360
16361         PR libgomp/29986
16362         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
16363         Document fix for TLS bug.
16364
16365 2010-01-31  Richard Guenther  <rguenther@suse.de>
16366
16367         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
16368         conservatively correct.
16369
16370 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16371
16372         PR target/42850
16373         Revert:
16374         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16375
16376         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16377
16378 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16379
16380         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
16381
16382 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
16383
16384         * config.gcc: Adjust order of makefile fragments for mingw targets.
16385
16386 2010-01-31  Richard Guenther  <rguenther@suse.de>
16387
16388         PR middle-end/42898
16389         * gimplify.c (gimplify_init_constructor): For volatile LHS
16390         initialize a temporary.
16391
16392 2010-01-31  Matthias Klose  <doko@ubuntu.com>
16393
16394         * configure.ac: Fix __stack_chk_fail check for cross builds configured
16395         --with-headers
16396         * configure: Regenerate.
16397
16398 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
16399
16400         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16401         the same alias set and their sizes different constantness.
16402         (aliasing_component_refs_p): Revert 2009-10-24 change.
16403
16404 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16405
16406         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
16407         unused.
16408
16409 2010-01-29  Richard Guenther  <rguenther@suse.de>
16410
16411         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
16412         Assert we successfully updated the call.
16413
16414 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
16415
16416         PR rtl-optimization/42889
16417         * df.h (df_set_bb_dirty_nonlr): New prototype.
16418         * df-core.c (df_set_bb_dirty_nonlr): New function.
16419         * df-scan.c (df_insn_rescan): Call it instead of
16420         df_set_bb_dirty for DEBUG_INSNs.
16421
16422 2010-01-29  Richard Guenther  <rguenther@suse.de>
16423
16424         PR middle-end/37448
16425         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
16426         quadratic behavior in most cases.
16427
16428 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
16429
16430         PR target/42891
16431         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
16432         in the call to gen_x86_movsicc_0_m1.
16433
16434 2010-01-28  Richard Guenther  <rguenther@suse.de>
16435
16436         PR tree-optimization/42871
16437         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
16438
16439 2010-01-28  Richard Guenther  <rguenther@suse.de>
16440
16441         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
16442         into call arguments.
16443
16444 2010-01-28  Richard Guenther  <rguenther@suse.de>
16445
16446         PR middle-end/42883
16447         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
16448         the forwarder if the destination is an EH landing pad.
16449
16450 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
16451
16452         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
16453         block list passed to gimple_duplicate_sese_tail.
16454         (parallelize_loops): Avoid parallelization when the function
16455         has_nonlocal_label.
16456         Avoid parallelization when the preheader is IRREDUCIBLE.
16457         Try to optimize when estimated_loop_iterations_int is unresolved.
16458         Add the loop's location to the dump file.
16459         * tree-cfg.c (add_phi_args_after_redirect): Remove.
16460         (gimple_duplicate_sese_tail): Remove the check for the latch.
16461         Redirect nexits to the exit block.
16462         Remove handling of the incoming edges to the latch.
16463         Redirect the backedge from the copied latch to the exit bb.
16464
16465 2010-01-28  Michael Matz  <matz@suse.de>
16466
16467         PR target/42881
16468         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
16469         Wrap force_reg into a sequence, emit it before user.
16470
16471 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
16472
16473         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
16474         (arm_rev): New.
16475         (arm_legacy_rev): Likewise.
16476         (thumb_legacy_rev): Likewise.
16477
16478 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
16479
16480         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
16481         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
16482         on MEM's address failed, try avoid_constant_pool_reference and
16483         recurse if it returned something different.
16484         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
16485         address, try avoid_constant_pool_reference and recurse if it
16486         returned something different.
16487         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
16488         address and avoid_constant_pool_reference returned something
16489         different, don't set have_address.
16490
16491 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
16492
16493         PR debug/42861
16494         * var-tracking.c (val_store): Add modified argument, obey it.
16495         Adjust callers.
16496         (count_uses): Move down logging of main.
16497         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
16498         don't need resolution.
16499         (emit_notes_in_bb): Likewise.
16500
16501 2010-01-27  Richard Guenther  <rguenther@suse.de>
16502
16503         PR middle-end/42878
16504         * tree-inline.c (remap_decl): Delay remapping of SSA name
16505         default definitions until we need them.
16506
16507 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
16508
16509         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16510         (rs6000_delegitimize_address): New function.
16511
16512         * config/s390/s390.c (s390_delegitimize_address): Call
16513         delegitimize_mem_from_attrs.
16514
16515         PR middle-end/42874
16516         * tree-inline.c (cannot_copy_type_1): Removed.
16517         (copy_forbidden): Don't forbid copying of functions containing
16518         records/unions with variable length fields.
16519
16520 2010-01-27  Christian Bruel  <christian.bruel@st.com>
16521
16522         Revert:
16523         PR target/42841
16524         * config/sh/sh.c (find_barrier): Increase length for non delayed
16525         conditional branches.
16526
16527 2010-01-27  Matthias Klose  <doko@ubuntu.com>
16528
16529         * configure.ac (gnu-unique-object): Fix ldd version check.
16530         * configure: Regenerate.
16531
16532 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16533
16534         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
16535         HAVE_GNU_AS value.
16536         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
16537         Test for HAVE_GNU_AS value.
16538
16539 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16540
16541         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
16542         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
16543         INT64_TYPE): Define.
16544         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
16545         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16546         INT_LEAST64_TYPE): Define.
16547         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
16548         UINT_LEAST64_TYPE): Define.
16549         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
16550         INT_FAST64_TYPE): Define.
16551         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16552         UINT_FAST64_TYPE): Define.
16553         (INTMAX_TYPE, UINTMAX_TYPE): Define.
16554         (INTPTR_TYPE, UINTPTR_TYPE): Define.
16555         (SIG_ATOMIC_TYPE): Define.
16556
16557 2010-01-26  Richard Guenther  <rguenther@suse.de>
16558
16559         * df-scan.c (df_scan_set_bb_info): Remove assert.
16560         (df_insn_rescan_debug_internal): Merge asserts.
16561         (df_install_ref): Likewise.
16562         (df_mark_reg): Use bitmap_set_range.
16563         (df_hard_reg_used_p): Remove assert.
16564         (df_hard_reg_used_count): Likewise.
16565
16566 2010-01-26  Richard Guenther  <rguenther@suse.de>
16567
16568         PR rtl-optimization/42685
16569         * web.c (web_main): Ignore DEBUG_INSNs.
16570
16571 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
16572
16573         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
16574
16575         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
16576         Fix types of fndecl and arglist parameters.
16577
16578 2010-01-26  Richard Guenther  <rguenther@suse.de>
16579
16580         PR middle-end/42806
16581         * tree-eh.c (unsplit_eh): Skip debug insns.
16582
16583 2010-01-26  Richard Guenther  <rguenther@suse.de>
16584
16585         PR tree-optimization/42250
16586         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
16587
16588 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
16589
16590         PR fortran/42866
16591         * omp-low.c (expand_omp_sections): Only use single_pred if
16592         l2_bb is single_pred_p.
16593
16594 2010-01-25  Christian Bruel  <christian.bruel@st.com>
16595
16596         PR target/42841
16597         * config/sh/sh.c (find_barrier): Increase length for non delayed
16598         conditional branches.
16599         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
16600
16601 2010-01-24  David S. Miller  <davem@davemloft.net>
16602
16603         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
16604         define if not using GAS.
16605         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16606         Likewise.  Delete SECTION_MERGE code, which is only applicable
16607         when using GAS.
16608
16609 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
16610
16611         PR c++/42748
16612         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
16613         mangling of va_list in system headers.
16614
16615 2010-01-23  Toon Moene  <toon@moene.org>
16616
16617         * tree-predcom.c (combine_chains): Return NULL, not false.
16618
16619 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
16620
16621         * tree-loop-distribution.c (distribute_loop): Fix declaration and
16622         initialization of variable res to agree with return type.
16623
16624 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
16625
16626         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
16627         * tree-sra.c: Add include of expr.h.
16628
16629 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
16630
16631         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
16632         insert the debug stmt on the single non-EH edge from the stmt.
16633
16634 2010-01-22  Richard Henderson  <rth@redhat.com>
16635
16636         PR tree-opt/42833
16637         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
16638         the RHS until after generate_subtree_copies has insertted its
16639         code before the current statement.
16640
16641 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
16642
16643         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
16644
16645         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
16646
16647 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16648
16649         PR tree-optimization/42585
16650         * tree-sra.c (struct access): New field grp_total_scalarization.
16651         (dump_access): Dump the new field.
16652         (should_scalarize_away_bitmap): New variable.
16653         (cannot_scalarize_away_bitmap): Likewise.
16654         (sra_initialize): Allocate new bitmaps.
16655         (sra_deinitialize): Free new bitmaps.
16656         (create_access_1): New function.
16657         (create_access): Parts moved to create_access_1.
16658         (type_consists_of_records_p): New function.
16659         (completely_scalarize_record): Likewise.
16660         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
16661         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
16662         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
16663         access.
16664         (analyze_all_variable_accesses): Completely scalarize small eligible
16665         records.
16666
16667 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16668
16669         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
16670
16671 2010-01-21  Andrew Haley  <aph@redhat.com>
16672
16673         * gcc.c (process_command): Move lang_specific_driver before
16674         setting cc_libexec_prefix.
16675
16676 2010-01-21  Richard Guenther  <rguenther@suse.de>
16677
16678         PR middle-end/19988
16679         * fold-const.c (negate_expr_p): Pretend only negative
16680         real constants are easily negatable.
16681
16682 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
16683             Jason Merrill  <jason@redhat.com>
16684
16685         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
16686         (TYPE_TRANSPARENT_AGGR): this, for union and record.
16687         * calls.c (initialize argument_information): Handle it.
16688         * c-common.c (handle_transparent_union_attribute): Use new name.
16689         * c-decl.c (finish_struct): Ditto.
16690         * c-typeck.c (type_lists_compatible_p): Ditto.
16691         (convert_for_assignment): Use new name and also handle record.
16692         * function.c (aggregate_value_p): Handle it.
16693         (pass_by_reference): Ditto.
16694         (assign_parm_data_types): Ditto.
16695         * print-tree.c (print_node): Ditto.
16696         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
16697         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
16698         * tree.c (first_field): New fn.
16699
16700 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
16701
16702         PR target/42818
16703         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
16704         even when linking statically, for now.
16705
16706 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16707
16708         PR debug/42715
16709         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
16710         without a cselib val.
16711         (count_uses): Accept MO_VAL_SET with no val on stores.
16712         (add_stores): Likewise.
16713
16714 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16715
16716         * var-tracking.c (check_value_val): Add a compile time assertion.
16717         (dv_is_decl_p): Simplify.
16718         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
16719         gcc_assert if ENABLE_CHECKING.
16720
16721 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16722
16723         PR debug/42782
16724         * var-tracking.c: Include tree-flow.h.
16725         (mem_dies_at_call): New.
16726         (dataflow_set_preserve_mem_locs): Use it.
16727         (dataflow_set_remove_mem_locs): Likewise.
16728         (dump_var): Renamed from dump_variable.  Adjust all callers.
16729         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
16730         * Makefile.in (var-tracking.o): Adjust deps.
16731
16732 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
16733
16734         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
16735
16736 2010-01-20  Richard Guenther  <rguenther@suse.de>
16737
16738         PR tree-optimization/42717
16739         * tree-ssa-dce.c (get_live_post_dom): Remove.
16740         (forward_edge_to_pdom): Take an arbitrary edge to copy
16741         degenerate PHI args from.
16742         (remove_dead_stmt): Use the first post-dominator even if it
16743         does not contain live statements as redirection destination.
16744
16745 2010-01-20  Richard Guenther  <rguenther@suse.de>
16746
16747         * tree-inline.c (estimate_num_insns): Handle EH builtins.
16748
16749 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16750
16751         * sel-sched.c (create_speculation_check): Remove set but not used
16752         variable twin.
16753         (try_transformation_cache): Remove set but not used variable ds.
16754         (calculate_privileged_insns): Remove set but not used variables
16755         cur_insn and min_spec_insn.
16756         (find_best_expr): Remove set but not used variable avail_n.
16757         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
16758         variable e.
16759         * cgraphunit.c (assemble_thunk): Remove set but not used variable
16760         false_label.
16761         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
16762         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
16763         new_scop_exit_edge.
16764
16765 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
16766
16767         PR bootstrap/42786
16768         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
16769         cpu types.  Add support for *-sse3 cpu types.
16770         (x86_64-*-*): Ditto.
16771
16772 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16773
16774         PR middle-end/42803
16775         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
16776         argument, call initializer_constant_valid_p_1 instead of
16777         initializer_constant_valid_p, pass CACHE to it, return NULL
16778         immediately if first call returns NULL.
16779         (initializer_constant_valid_p_1): New function.
16780         (initializer_constant_valid_p): Use it.
16781
16782 2010-01-20  Thomas Quinot  <quinot@adacore.com>
16783
16784         * tree.def (PLACEHOLDER_EXPR): Fix comment.
16785
16786 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16787
16788         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
16789         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
16790         (loc_list_from_tree): Don't handle unsigned division.  Handle
16791         signed modulo using DW_OP_{over,over,div,mul,minus}.
16792         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
16793         modulo instead of signed.
16794
16795 2010-01-20  DJ Delorie  <dj@redhat.com>
16796
16797         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
16798         (Fpa): Pass it
16799         (h8300_emit_stack_adjustment): Propogate it.
16800         (push): Pass it.
16801         (h8300_expand_prologue): Likewise.
16802         (h8300_expand_epilogue): Likewise.
16803
16804 2010-01-19  Michael Matz  <matz@suse.de>
16805
16806         PR tree-optimization/41783
16807         * tree-data-ref.c (toplevel): Include flags.h.
16808         (dump_data_dependence_relation):  Also dump the inputs if the
16809         result will be unknown.
16810         (split_constant_offset_1): Look through some conversions.
16811         * tree-predcom.c (determine_roots_comp): Restart a new chain if
16812         the offset from last element is too large.
16813         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
16814         (reassociate_to_the_same_stmt): Handle vector registers.
16815         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
16816         (e.g. conversions).
16817         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
16818         wide_prolog_niters argument, emit widening instructions.
16819         (vect_do_peeling_for_alignment): Adjust caller, use widened
16820         variant of the iteration cound.
16821         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
16822
16823 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16824
16825         PR target/38697
16826         * config/arm/neon-testgen.m (emit_automatics): New parameter
16827         features. Adjust for Fixed_return_reg feature.
16828         (test_intrinsic): Call emit_automatics with new feature.
16829         * config/arm/neon.ml: Update copyright years.
16830         (features): New Fixed_return_reg feature.
16831         (ops): Update feature for Vget_low.
16832
16833 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
16834
16835         PR tree-optimization/42719
16836         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
16837         stmt uses.
16838
16839         PR debug/42728
16840         * fwprop.c (all_uses_available_at): Return false if def_set dest
16841         is a REG that is used in def_insn.
16842
16843 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
16844
16845         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
16846
16847         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
16848         Add argument names.
16849
16850         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
16851
16852         * target.h (struct gcc_target) <secondary_reload>: Change type
16853         of last argument to secondary_reload_info *.
16854
16855 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
16856
16857         PR target/42774
16858         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
16859         memory references with unaligned offsets.  Remove CQImode handling.
16860         (unaligned_memory_operand): Return 1 for memory references with
16861         unaligned offsets.  Remove CQImode handling.
16862
16863 2010-01-18  Richard Guenther  <rguenther@suse.de>
16864
16865         PR middle-end/39954
16866         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
16867         builtin calls.
16868
16869 2010-01-18  Richard Guenther  <rguenther@suse.de>
16870
16871         PR tree-optimization/42781
16872         * tree-ssa-structalias.c (find_what_var_points_to): Skip
16873         restrict processing only if the original variable was artificial.
16874
16875 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
16876
16877         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
16878         find number of popped argument bytes.
16879
16880         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
16881         Fix the text that describes the return value for invalid insns.
16882
16883         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
16884
16885         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
16886         Clarify what 'cost of the -dependence' is.  Fix quoting.
16887
16888         * toplev.c (default_get_pch_validity): Rename argument to "sz".
16889         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
16890
16891 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
16892
16893         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16894         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
16895
16896 2010-01-17  Richard Guenther  <rguenther@suse.de>
16897
16898         PR middle-end/42248
16899         * function.c (split_complex_args): Take a VEC to modify.
16900         (assign_parms_augmented_arg_list): Build a VEC instead of
16901         a chain of PARM_DECLs.
16902         (assign_parms_unsplit_complex): Take a VEC of arguments.
16903         Do not fixup unmodified parms.
16904         (assign_parms): Deal with the VEC.
16905         (gimplify_parameters): Likewise.
16906
16907 2010-01-17  Richard Guenther  <rguenther@suse.de>
16908
16909         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
16910         node existence check.
16911         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
16912         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
16913         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
16914         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
16915         (gimple_execute_on_growing_pred): Likewise.
16916
16917 2010-01-17  Richard Guenther  <rguenther@suse.de>
16918
16919         PR tree-optimization/42773
16920         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
16921         (compute_antic_aux): Likewise.
16922         (compute_partial_antic_aux): Likewise.
16923
16924 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
16925
16926         PR debug/42767
16927         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
16928         and US_TRUNCATE.
16929
16930 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
16931
16932         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
16933         appearance.
16934
16935         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
16936         Fix markup for strict argument.
16937
16938         (TARGET_SCHED_REORDER2): Fix argument types.
16939
16940         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
16941         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
16942
16943         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
16944         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
16945
16946         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
16947         Add argument name.
16948
16949         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
16950         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
16951         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
16952         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
16953         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
16954
16955         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
16956
16957         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
16958
16959         (TARGET_ASM_RELOC_RW_MASK): Add return type.
16960         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
16961
16962         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
16963
16964         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
16965         Use prototype.
16966
16967         (TARGET_ASM_NAMED_SECTION): Fix argument list.
16968
16969         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
16970         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
16971
16972         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
16973
16974         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
16975
16976         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
16977         referring to it.  Fix language.
16978
16979         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
16980
16981         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
16982
16983         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
16984
16985         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
16986
16987         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
16988         '@var{stream}.  Remove stray 'and'.
16989
16990         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
16991
16992         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
16993
16994         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
16995
16996         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
16997         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
16998
16999         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17000         Fix description of return value.
17001         Rename argument "sz" to "len."
17002
17003         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17004         Clarify meaning of 'true' return value.
17005
17006         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17007
17008         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17009         rep_mode versus mode_rep.
17010
17011         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17012
17013         (TARGET_BUILTIN_DECL): Fix name.
17014
17015         (TARGET_COMMUTATIVE_P): Fix type of first argument.
17016
17017         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17018
17019         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17020
17021         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17022
17023         (TARGET_RELAXED_ORDERING): Use @deftypevr.
17024
17025         (TARGET_GET_DRAP_RTX): Note that this is a hook.
17026         Clarify language.
17027
17028         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17029         Rename argument tm_fn to md_fn.
17030
17031         (TARGET_OPTION_PRINT): Fix argument list.
17032
17033 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
17034
17035         PR target/42664
17036         * config/i386/i386.c (ix86_fixup_binary_operands):
17037         Revert FMA4 fixup of operands.
17038
17039 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17040
17041         PR gcc/42525
17042         * Makefile.in (write_entries_to_file, install-plugin):
17043         Use \012 instead of \n with tr.
17044
17045 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
17046
17047         * configure.ac (HAVE_AS_REF): New C macro.
17048         * configure: Regenerate.
17049         * config.in: Likewise.
17050         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17051         if HAVE_AS_REF.
17052         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17053         if HAVE_AS_REF.
17054
17055 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
17056
17057         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17058
17059         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17060
17061         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17062
17063         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17064
17065         (TARGET_IN_SMALL_DATA_P): Fix argument type.
17066
17067         (TARGET_BINDS_LOCAL_P): Fix argument type.
17068
17069         (TARGET_ASM_FILE_END): Use prototype.
17070
17071         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17072
17073         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17074
17075         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17076
17077         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17078
17079         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17080         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17081
17082         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17083         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17084
17085         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17086         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17087         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17088         (TARGET_ADDR_SPACE_CONVERT): Likewise.
17089
17090         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17091
17092         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17093
17094         (TARGET_INIT_BUILTINS): Use prototype.
17095
17096         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17097         Put 'const char *' in braces.  Fix parameter types.
17098         (TARGET_INVALID_CONVERSION): Fix parameter types.
17099         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17100         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17101
17102         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17103         Fix argument type.
17104
17105         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17106
17107         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17108
17109 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
17110
17111         * doc/tm.texi (TARGET_HELP): Fix return type.
17112
17113         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17114         in braces.  Fix argument types.
17115
17116         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17117
17118         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17119
17120         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17121
17122         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17123         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17124
17125         (TARGET_MANGLE_TYPE): Fix argument types.
17126
17127         (TARGET_IRA_COVER_CLASSES): Use prototype.
17128
17129         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
17130
17131         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17132
17133         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17134
17135         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17136
17137         (TARGET_CALLEE_COPIES): Fix argument types.
17138
17139         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17140
17141         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17142
17143         (TARGET_FUNCTION_VALUE): Fix argument types.
17144
17145         (TARGET_RETURN_IN_MSB): Fix argument type.
17146
17147         (TARGET_RETURN_IN_MEMORY): Fix argument types.
17148
17149         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17150
17151         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17152
17153         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17154         agree with return type.
17155
17156         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17157
17158 2010-01-15  Jing Yu  <jingyu@google.com>
17159
17160         PR rtl-optimization/42691
17161         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17162         a pseudo to a constant and are merged, and adjust comments.
17163
17164 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17165
17166         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17167
17168 2010-01-15  Richard Guenther  <rguenther@suse.de>
17169
17170         PR middle-end/42739
17171         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17172         labels of computed or non-local gotos to the destination.
17173         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17174         landing pad label is the first label.
17175
17176 2010-01-15  Richard Guenther  <rguenther@suse.de>
17177
17178         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17179
17180 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17181
17182         PR target/42747
17183         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17184         to allow generation of the xssqrtdp instruction on power7.
17185         (sqrtdf2_fpr): Ditto.
17186
17187 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17188
17189         PR middle-end/42674
17190         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17191         functions with noreturn attribute.
17192
17193         PR c++/42608
17194         * varasm.c (declare_weak): Add weak attribute to decl if it
17195         doesn't have one already.
17196         (assemble_external): Only add decls to weak_decls if they also
17197         have weak attribute.
17198
17199 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
17200
17201         * var-tracking.c (var_reg_delete): Don't delete the association
17202         between REGs and values or one-part variables if the register
17203         isn't clobbered.
17204
17205 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17206
17207         PR debug/42657
17208         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17209         because its first operand is a non-localized variable.
17210
17211 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17212
17213         PR tree-optimization/42706
17214         * tree-sra.c (encountered_recursive_call): New variable.
17215         (encountered_unchangable_recursive_call): Likewise.
17216         (sra_initialize): Initialize both new variables.
17217         (callsite_has_enough_arguments_p): New function.
17218         (scan_function): Call decl and flags check only for IPA-SRA, check
17219         whether there is a recursive call and whether it has enough arguments.
17220         (all_callers_have_enough_arguments_p): New function.
17221         (convert_callers): Look for recursive calls only when
17222         encountered_recursive_call is set.
17223         (ipa_early_sra): Bail out either if
17224         !all_callers_have_enough_arguments_p or
17225         encountered_unchangable_recursive_call.
17226
17227 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17228
17229         * sel-sched.c: Add 2010 to copyright years.
17230         * sel-sched-ir.c: Likewise.
17231         * sel-sched-ir.h: Likewise.
17232
17233 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17234
17235         PR tree-optimization/42714
17236         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17237         constructors specially.
17238
17239 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17240
17241         * config/i386/drivers-i386.c (detect_caches_intel):
17242         Add l2sizekb parameter and fill in.
17243         (host_detect_local_cpu): Add l2sizekb, fill in.
17244         Add Atom small cache heuristic.
17245
17246 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17247
17248         * config/i386/drivers-i386.c (detect_caches_cpuid4):
17249         Add level3 parameter and fill in.
17250         (detect_caches_intel): Handle level3 cache.
17251
17252 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17253
17254         * config/i386/drivers-i386.c (host_detect_local_cpu):
17255         Fix core duo detection.
17256
17257 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17258
17259         * config/i386/drivers-i386.c (host_detect_local_cpu):
17260         Fix Atom detection.
17261
17262 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17263
17264         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17265         (rs6000_variable_issue_1): this.  Use...
17266         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
17267
17268 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17269
17270         * sel-sched-ir.c (sel_restore_other_notes): Rename to
17271         sel_restore_notes.  Update all callers.  Call reemit_notes
17272         for all insns.
17273
17274 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17275
17276         PR rtl-optimization/42246
17277         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17278         loops.
17279
17280 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17281
17282         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17283         all successors is the same as number of successors in current region.
17284
17285 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17286
17287         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17288         to rename is not separable.  Otherwise check that its LHS is not NULL.
17289
17290 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17291
17292         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
17293
17294 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17295
17296         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17297         available registers when failed to discover LHS register class.
17298         Fix indentation.  Update comment.
17299
17300 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17301             Alexander Monakov  <amonakov@ispras.ru>
17302
17303         PR rtl-optimization/42389
17304         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17305         to can_issue_more.
17306         (advance_state_on_fence): Likewise.
17307         (sel_target_adjust_priority): Print debug output only when
17308         sched_verbose >= 4, not 2.
17309         (get_expr_cost): Do not issue all unique insns on the next cycle.
17310         (fill_insns): Initialize can_issue_more from the value saved
17311         with the fence.
17312         * sel-sched-ir.c (flist_add): New parameter issue_more.
17313         Init FENCE_ISSUE_MORE with it.
17314         (merge_fences): Likewise.
17315         (init_fences): Update call to flist_add.
17316         (add_to_fences, add_clean_fence_to_fences)
17317         (add_dirty_fence_to_fences): Likewise.
17318         (move_fence_to_fences): Update call to merge_fences.
17319         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17320         sched groups.
17321         * sel-sched-ir.h (struct _fence): New field issue_more.
17322         (FENCE_ISSUE_MORE): New accessor macro.
17323
17324 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17325
17326         PR rtl-optimization/42388
17327         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17328         that have no predecessors nor successors.  Do not call move_bb_info
17329         for empty blocks outside of current region.
17330
17331 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17332
17333         PR rtl-optimization/42294
17334         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
17335         * sel-sched.c (move_exprs_to_boundary): Transitively add all
17336         originators' originators.
17337
17338 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17339
17340         PR rtl-optimization/39453
17341         PR rtl-optimization/42246
17342         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
17343         for pipelining_p.
17344         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
17345
17346 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17347             Alexander Monakov  <amonakov@ispras.ru>
17348
17349         PR middle-end/42245
17350         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
17351         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
17352         argument.  Update all callers.
17353         (tidy_control_flow): ... and here.  Recompute topological order
17354         of basic blocks in region if necessary.
17355         (sel_redirect_edge_and_branch): Change return type.  Return true
17356         if topological order might have been invalidated.
17357         (purge_empty_blocks): Export and move from...
17358         * sel-sched.c (purge_empty_blocks): ... here.
17359         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
17360         (maybe_tidy_empty_bb): Delete prototype.
17361         (purge_empty_blocks): Declare.
17362
17363 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17364
17365         PR rtl-optimization/42249
17366         * sel-sched.c (try_replace_dest_reg): When chosen register
17367         and original register is the same, do not bail out early, but
17368         still check all original insns for validity of replacing destination
17369         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
17370         in this case.
17371
17372 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17373
17374         PR c/42721
17375         Port from no-undefined-overflow branch:
17376         2009-03-09  Richard Guenther  <rguenther@suse.de>
17377
17378         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
17379
17380 2010-01-14  Richard Guenther  <rguenther@suse.de>
17381
17382         PR lto/42665
17383         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
17384
17385 2010-01-14  Ira Rosen  <irar@il.ibm.com>
17386
17387         PR tree-optimization/42709
17388         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
17389         as scalar type in creation of constant vector operand.
17390
17391 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17392
17393         PR testsuite/42414
17394         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
17395         (check-parallel-%): Match `testsuite' directory component only
17396         at the end.
17397
17398 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
17399
17400         PR translation/39521
17401         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
17402         strings with _().
17403
17404 2010-01-13  Richard Guenther  <rguenther@suse.de>
17405
17406         PR tree-optimization/42730
17407         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
17408         offset zero.
17409
17410 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
17411
17412         PR target/pr42542
17413         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
17414         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
17415         them signed.
17416
17417 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
17418
17419         * config/bfin/libgcc-bfin.ver: Regenerate based on current
17420         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
17421         ___umulsi3_highpart.
17422
17423         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
17424         rather than schedule_insns if the pass is enabled.
17425
17426 2010-01-13  Martin Jambor  <mjambor@suse.cz>
17427
17428         PR tree-optimization/42704
17429         * tree-sra.c (sra_modify_assign): Do not delete assignments to
17430         SSA_NAMEs.
17431
17432 2010-01-13  Martin Jambor  <mjambor@suse.cz>
17433
17434         PR tree-optimization/42703
17435         * tree-sra.c (analyze_access_subtree): Check that we can build a
17436         reference to the original data within the aggregate.
17437
17438 2010-01-13  Richard Guenther  <rguenther@suse.de>
17439
17440         PR tree-optimization/42705
17441         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
17442
17443 2010-01-13  Richard Guenther  <rguenther@suse.de>
17444
17445         PR middle-end/42716
17446         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
17447
17448 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
17449
17450         PR debug/41371
17451         * var-tracking.c (values_to_unmark): New variable.
17452         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17453         values_to_unmark vector.  Moved body to...
17454         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
17455         instead queue it into values_to_unmark vector.
17456         (vt_find_locations): Free values_to_unmark vector.
17457
17458 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
17459
17460         * config/s390/s390.c (override_options): Set
17461         default of max-pending-list-length to 256
17462
17463 2010-01-13  Richard Guenther  <rguenther@suse.de>
17464
17465         PR lto/42678
17466         * tree-pass.h (PROP_gimple_lcx): New.
17467         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
17468         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
17469         before the final cleanup_eh.
17470         (dump_properties): Dump PROP_gimple_lcx.
17471         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
17472         (tree_lower_complex_O0): Remove.
17473         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
17474         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
17475         tree_lower_complex, schedule TODO_update_ssa.
17476         * lto-streamer-out.c (output_function): Stream the functions
17477         properties.
17478         * lto-streamer-in.c (input_function): Likewise.
17479         (lto_read_body): Do not override them here.
17480
17481 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
17482
17483         PR c/42708
17484         * c-typeck.c (build_c_cast): Fold value cast to union type before
17485         wrapping it in a CONSTRUCTOR.
17486
17487 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
17488
17489         PR rtl-optimization/42699
17490         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
17491         involved.
17492
17493 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17494
17495         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17496         SUBTARGET_WARN_UNUSED_SPEC): Move ...
17497         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17498         SUBTARGET_WARN_UNUSED_SPEC): ... here
17499         * config/mips/iris5.h (LIBGCC_SPEC): Define.
17500
17501 2010-01-12  Julian Brown  <julian@codesourcery.com>
17502
17503         * config/arm/neon-schedgen.ml (Utils): Don't try to
17504         open missing module.
17505         (find_with_result): New.
17506
17507 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
17508
17509         PR debug/42662
17510         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
17511         sharing when canonicalizing ({lt,ge}u (plus a b) b).
17512
17513         PR tree-optimization/42645
17514         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
17515         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
17516         decl_map, set processing_debug_stmt to -1 and return name without
17517         any remapping.
17518
17519 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
17520
17521         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
17522         binutils version, and reword target configuration description.
17523
17524 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17525
17526         * config/avr/avr.h (LINKER_NAME): Remove.
17527
17528 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
17529
17530         PR target/42416
17531         * config/rs6000/rs6000.c (rs6000_override_options): On targets
17532         that support VSX, warn for -mno-altivec if vsx is not disabled,
17533         and disable vsx.
17534
17535 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
17536             Shujing Zhao  <pearly.zhao@oracle.com>
17537
17538         PR translation/42469
17539         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
17540         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
17541         character between option name and help text.
17542         * c.opt (imultilib): Likewise.
17543
17544 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
17545
17546         * lto-streamer-out.c (output_unreferenced_globals): Output static
17547         variables.
17548
17549 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
17550
17551         PR rtl-optimization/42621
17552         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
17553         optimizing for size.
17554         (duplicate_computed_gotos): Remove now-redundant check.
17555
17556 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
17557
17558         PR target/37454
17559         * configure.ac: Save and restore LDFLAGS and LIBS
17560         * configure: Regenerate.
17561
17562 2010-01-10  Richard Guenther  <rguenther@suse.de>
17563
17564         PR middle-end/42667
17565         * builtins.c (fold_builtin_strlen): Add type argument and
17566         convert the resulting length to it.
17567         (fold_builtin_1): Adjust.
17568
17569 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17570
17571         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
17572         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
17573         1 insn.
17574         (num_insns_constant_wide): Adjust for that change.
17575
17576 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17577
17578         PR debug/42631
17579         * web.c (union_defs): Add used argument, to combine uses of
17580         uninitialized regs.
17581         (entry_register): Adjust type and tests of used argument.
17582         (web_main): Widen used for new use.  Pass it to union_defs.
17583         * df.h (union_defs): Adjust prototype.
17584
17585 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17586
17587         PR debug/42630
17588         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
17589         uses in new incoming argument.  Free body.
17590         (reset_debug_uses_in_loop): New.
17591         (analyze_insn_to_expand_var): Call the latter if the former found
17592         anything.  Fix whitespace.  Reject invalid dest overlaps before
17593         going through all insns in the loop.
17594
17595 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17596
17597         PR debug/42629
17598         * haifa-sched.c (dying_use_p): Debug insns don't count.
17599
17600 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17601
17602         PR middle-end/42363
17603         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
17604         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
17605         (verify_gimple_call): Reject LHS in noreturn calls.
17606
17607 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17608
17609         PR debug/42604
17610         PR debug/42395
17611         * tree-vect-loop-manip.c (adjust_info): New type.
17612         (adjust_vec): New pointer to vector.
17613         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
17614         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
17615         (slpeel_update_phis_for_duplicate_loop): Use them.
17616         (slpeel_update_phi_nodes_for_guard1): Likewise.
17617         (slpeel_update_phi_nodes_for_guard2): Likewise.
17618         (slpeel_tree_peel_loop_to_edge): Likewise.
17619         (vect_update_ivs_after_vectorizer): Likewise.
17620
17621 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17622
17623         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
17624         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17625
17626 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17627
17628         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
17629         bogus uninitialized warning.
17630
17631 2010-01-09  Richard Guenther  <rguenther@suse.de>
17632
17633         PR middle-end/42512
17634         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
17635         the evolution is compatible with the initial condition.
17636
17637 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17638
17639         * gcc.c (process_command): Update copyright notice dates.
17640         * gcov.c (print_version): Likewise.
17641         * gcov-dump.c (print_version): Likewise.
17642         * mips-tfile.c (main): Likewise.
17643         * mips-tdump.c (main): Likewise.
17644
17645 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17646
17647         PR target/41885
17648         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
17649         (rotlhi3): Delete.
17650         (rotlhi3_8): Delete.
17651         (rotlsi3): Delete.
17652         (rotlsi3_8): Delete.
17653         (rotlsi3_16): Delete.
17654         (rotlsi3_24): Delete.
17655         (rotl<mode>3): New.
17656         (*rotw<mode>3): New.
17657         (*rotb<mode>3): New.
17658         * config/avr/avr.c (avr_rotate_bytes): New function.
17659         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
17660
17661 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
17662
17663         PR target/37454
17664         * configure.ac: Modify -rdynamic check.
17665         * configure: Regenerate.
17666
17667 2010-01-08  DJ Delorie  <dj@redhat.com>
17668
17669         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
17670         register popping order.
17671
17672 2010-01-08  Richard Guenther  <rguenther@suse.de>
17673
17674         PR lto/42528
17675         * c.opt (fsigned-char): Also let LTO handle this option.
17676         (funsigned-char): Likewise.
17677
17678 2010-01-07  Richard Guenther  <rguenther@suse.de>
17679
17680         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
17681         (gimple_op): Likewise.
17682         (gimple_op_ptr): Likewise.
17683         (gimple_assign_set_lhs): Remove gcc_assert.
17684         (gimple_assign_set_rhs1): Likewise.
17685         (gimple_assign_set_rhs2): Likewise.
17686         (gimple_call_set_lhs): Likewise.
17687         (gimple_call_set_fn): Likewise.
17688         (gimple_call_set_fndecl): Likewise.
17689         (gimple_call_fndecl): Likewise.
17690         (gimple_call_return_type): Likewise.
17691         (gimple_call_set_chain): Likewise.
17692         (gimple_call_num_args): Likewise.
17693         (gimple_call_set_arg): Likewise.
17694         (gimple_cond_set_code): Likewise.
17695         (gimple_cond_set_lhs): Likewise.
17696         (gimple_cond_set_rhs): Likewise.
17697         (gimple_cond_set_true_label): Likewise.
17698         (gimple_cond_set_false_label): Likewise.
17699         (gimple_label_set_label): Likewise.
17700         (gimple_goto_set_dest): Likewise.
17701         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
17702         (gimple_debug_bind_get_value): Likewise.
17703         (gimple_debug_bind_get_value_ptr): Likewise.
17704         (gimple_debug_bind_set_var): Likewise.
17705         (gimple_debug_bind_set_value): Likewise.
17706         (gimple_debug_bind_reset_value): Likewise.
17707         (gimple_debug_bind_has_value_p): Likewise.
17708         (gimple_return_retval_ptr): Remove gcc_assert.
17709         (gimple_return_retval): Likewise.
17710         (gimple_return_set_retval): Likewise.
17711         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
17712         (safe_referenced_var_iterator): Remove.
17713         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
17714         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
17715         (fill_referenced_var_vec): Remove.
17716         (first_readonly_imm_use): Remove redundant gcc_assert.
17717         (phi_arg_index_from_use): Combine gcc_asserts.
17718         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
17719         (first_imm_use_stmt): Remove redundant gcc_assert.
17720         * tree-cfg.c (verify_gimple_call): Verify function and chain
17721         operands.  Verify arguments.
17722         (verify_types_in_gimple_stmt): Verify condition code and labels.
17723
17724 2010-01-07  Richard Guenther  <rguenther@suse.de>
17725
17726         PR tree-optimization/42641
17727         * sese.c (rename_map_elt_info): Use the SSA name version, do
17728         not hash pointers.
17729
17730 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
17731
17732         PR tree-optimization/42625
17733         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
17734         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
17735
17736 2010-01-07  Duncan Sands  <baldrick@free.fr>
17737
17738         * Makefile.in (PLUGIN_HEADERS): Add version.h.
17739
17740 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
17741
17742         PR target/42511
17743         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
17744         note itself is not function_invariant_p.
17745
17746 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
17747
17748         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
17749         Do not add the DF_NOTE problem.
17750         * store-motion.c (execute_rtl_store_motion): Likewise.
17751
17752 2010-01-07  Martin Jambor  <mjambor@suse.cz>
17753
17754         PR tree-optimization/42157
17755         * tree-sra.c (compare_access_positions): Stabilize sort if both
17756         accesses have integer types, return zero immediately if they are the
17757         same.
17758
17759 2010-01-06  Richard Henderson  <rth@redhat.com>
17760
17761         PR middle-end/41883
17762         * haifa-sched.c (add_to_note_list): Merge into ...
17763         (concat_note_lists): ... here, and ...
17764         (unlink_other_notes, rm_other_notes): Merge into...
17765         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
17766         NOTE_INSN_EPILOGUE_BEG.
17767
17768 2010-01-06  Richard Guenther  <rguenther@suse.de>
17769
17770         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
17771         not inline regular functions into always-inline functions.
17772
17773 2010-01-06  Nick Clifton  <nickc@redhat.com>
17774
17775         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
17776         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
17777         used together.
17778         (OVERRIDE_OPTIONS): Delete.
17779         (OPTIMIZATION_OPTIONS): Define.
17780         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
17781         * config/rx/rx.c (rx_handle_option): Issue an error message if
17782         -mcpu=rx200 and -fpu are used together.
17783         (rx_set_optimization_options): New function.  Issue an error
17784         message if an optimization attribute attempts to reset the FPU/
17785         math optimization pairing.
17786         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
17787         * config/rx/rx.opt: Set the default to 32-bit doubles.
17788         * config/rx/t-rx: Add multilibs for -nofpu option.
17789         * doc/invoke.texi: Update documentation of RX options.
17790
17791 2010-01-06  Richard Guenther  <rguenther@suse.de>
17792
17793         * tree-ssa-pre.c (name_to_id): New global.
17794         (alloc_expression_id): Simplify SSA name handling.
17795         (lookup_expression_id): Likewise.
17796         (init_pre): Zero name_to_id.
17797         (fini_pre): Free it.
17798
17799 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
17800
17801         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
17802
17803 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17804
17805         PR target/42542
17806         * config/i386/sse.md (smaxv2di3): New.
17807         (umaxv2di3): Likewise.
17808         (sminv2di3): Likewise.
17809         (uminv2di3): Likewise.
17810
17811 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
17812
17813         PR target/42564
17814         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
17815         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
17816         (legitimize_tls_address): Likewise.
17817         (sparc_tls_referenced_p): Likewise.
17818         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
17819         and adjust calls to legitimize_pic_address.
17820         (legitimate_constant_p) Use sparc_tls_referenced_p.
17821         (legitimate_pic_operand_p): Likewise.
17822         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
17823         (sparc_tls_symbol_ref_1): Delete.
17824         (sparc_tls_referenced_p): Make static, recognize specific patterns.
17825         (legitimize_tls_address): Make static, handle CONST patterns.
17826         (legitimize_pic_address): Make static, remove unused parameter and
17827         adjust recursive calls.
17828         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
17829         and adjust call to legitimize_pic_address.
17830         (sparc_output_mi_thunk): Likewise.
17831
17832 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
17833             H.J. Lu  <hongjiu.lu@intel.com>
17834
17835         PR target/42542
17836         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
17837         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
17838         operands to make them signed.
17839
17840         Revert:
17841         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17842
17843         PR target/42542
17844         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
17845         GTU to GT for V4SI and V2DI.
17846
17847         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
17848         (umin<mode>3): Removed.
17849         (uminv8hi3): New.
17850         (uminv4si3): Likewise.
17851
17852 2010-01-05  Martin Jambor  <mjambor@suse.cz>
17853
17854         PR tree-optimization/42462
17855         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
17856         current_function_decl to helper functions and macros.
17857
17858 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17859
17860         PR bootstrap/41771
17861         * flags.h: Don't include real.h.
17862         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
17863         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
17864         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
17865         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
17866         * dominance.c: Update copyright.
17867         * gimple.c (walk_gimple_op): Remove inline.
17868         * tree-ssa-reassoc.c: Include real.h.
17869         * Makefile.in (FLAGS_H): Remove $(REAL_H).
17870         (tree-ssa-reassoc.o): Depend on $(REAL_H).
17871
17872 2010-01-05  Nick Clifton  <nickc@redhat.com>
17873
17874         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
17875         register to push into the stack frame when the accumulator has to
17876         be saved during interrupts.
17877
17878 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
17879
17880         * doc/invoke.texi: Remove the documentation about option
17881         -Wunreachable-code.
17882         * common.opt (Wunreachable-code):  Preserved for backward
17883         compatibility.
17884         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
17885         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
17886         the backward compatibility flag section.
17887
17888 2010-01-05  Richard Guenther  <rguenther@suse.de>
17889
17890         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
17891
17892 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
17893
17894         PR other/42611
17895         * cfgexpand.c (expand_one_var): Diagnose too large variables.
17896
17897         PR tree-optimization/42508
17898         * tree-sra.c (convert_callers): Check for recursive call
17899         by comparing cgraph nodes instead of decls.
17900         (modify_function): Call ipa_modify_formal_parameters also
17901         on all same_body aliases.
17902
17903         * cgraphunit.c (cgraph_materialize_all_clones): Compare
17904         cgraph nodes when checking for same_body aliases.
17905
17906 2010-01-05  Richard Guenther  <rguenther@suse.de>
17907
17908         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
17909         allocation and lookup.
17910         (get_or_alloc_expr_for_constant): Likewise.
17911         (phi_translate): Sink allocation.
17912
17913 2010-01-04  Richard Guenther  <rguenther@suse.de>
17914
17915         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
17916         a new entry only if needed.
17917         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
17918         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
17919         hashtable lookup.
17920         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
17921         the result array.
17922         (phi_translate): Handle CONSTANTs early.
17923
17924 2010-01-04  Martin Jambor  <mjambor@suse.cz>
17925
17926         PR tree-optimization/42398
17927         * tree-sra.c (struct access): Removed flag grp_different_types.
17928         (dump_access): Do not dump the removed flag.
17929         (sort_and_splice_var_accesses): Do not set the removed flag.
17930         (sra_modify_expr): Check for type compatibility directly.
17931
17932 2010-01-04  Martin Jambor  <mjambor@suse.cz>
17933
17934         PR tree-optimization/42366
17935         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
17936         edges with variable number of parameters.
17937         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
17938         flag instead of asserting it.
17939         (ipa_read_node_info): Read uses_analysis_done flag.
17940
17941 2010-01-04  Richard Guenther  <rguenther@suse.de>
17942
17943         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
17944         iterative_hash_* as intended.
17945         (vn_reference_compute_hash): Likewise.  Simplify hashing
17946         SSA names.
17947         (vn_reference_lookup_2): Likewise.
17948         (vn_nary_op_compute_hash): Likewise.
17949         (vn_phi_compute_hash): Likewise.
17950         (expressions_equal_p): Remove strange code.
17951         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
17952         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
17953         (bitmap_insert_into_set_1): Take value-id as parameter.
17954         (add_to_value): Pass it.
17955         (bitmap_insert_into_set): Likewise.
17956         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
17957
17958 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
17959
17960         PR driver/42442
17961         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
17962         (do_self_spec): For switches with SWITCH_IGNORE set set also
17963         SWITCH_IGNORE_PERMANENTLY.
17964         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
17965         of SWITCH_IGNORE.
17966
17967 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
17968
17969         * lto-streamer-out.c (output_unreferenced_globals): Output the full
17970         tree of an unreferenced global var.
17971
17972 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17973
17974         PR target/42542
17975         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
17976         GTU to GT for V4SI and V2DI.
17977
17978         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
17979         (umin<mode>3): Removed.
17980         (uminv8hi3): New.
17981         (uminv4si3): Likewise.
17982
17983 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17984
17985         PR lto/42581
17986         * collect2.c (main): Turn on trace in collect2 if -v is passed
17987         to gcc with LTO.
17988
17989 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
17990
17991         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
17992         description of expression operand.
17993
17994 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
17995
17996         * configure.ac: Add install-html to target_list for Make-hooks.
17997         * configure: Regenerate.
17998         * fortran/Make-lang.in (F95_HTMLFILES): New.
17999         (fortran.html): Use it.
18000         (fortran.install-html): New.
18001         * Makefile.in (install-html): Add lang.install-html.
18002         * java/Make-lang.in (JAVA_HTMLFILES): New.
18003         (java.html): Use it.
18004         (java.install-html): New.
18005         * objc/Make-lang.in (objc.install-html): New.
18006         * objcp/Make-lang.in (obj-c++.install-html): New.
18007         * cp/Make-lang.in (c++.install-html): New.
18008         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18009         * lto/Make-lang.in (lto.install-html): New.
18010
18011 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18012
18013         PR lto/42520
18014         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18015
18016 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18017
18018         PR rtl-optimization/41862
18019         * store-motion.c (store_killed_in_insn, compute_store_table,
18020         remove_reachable_equiv_notes, replace_store_insn,
18021         build_store_vectors): Ignore all DEBUG_INSNs.
18022
18023 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18024
18025         PR lto/41564
18026         * common.opt: Add dumpdir.
18027
18028         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18029         isn't specified.
18030         (option_map): Add --dumpdir.
18031
18032         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18033
18034         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18035
18036         * opts.c (decode_options): Try dump_dir_name first if
18037         dump_base_name isn't an absolute path.
18038         (common_handle_option): Handle OPT_dumpdir.
18039
18040         * toplev.c (dump_dir_name): New.
18041         (print_switch_values): Also ignore -dumpdir.
18042
18043         * toplev.h (dump_dir_name): New.
18044
18045 2010-01-03  Richard Guenther  <rguenther@suse.de>
18046
18047         PR tree-optimization/42589
18048         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18049         double-word expansion of bswap32.
18050
18051 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18052
18053         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18054         with BLOCK_FOR_INSN.
18055         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18056         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18057         noce_process_if_block): Likewise.
18058         * gcse.c (compute_local_properties, insert_expr_in_table,
18059         insert_set_in_table, canon_list_insert, find_avail_set,
18060         pre_insert_copy_insn): Likewise.
18061
18062         * basic-block.h (BLOCK_NUM): Move from here...
18063         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18064
18065 2010-01-03  Richard Guenther  <rguenther@suse.de>
18066
18067         PR tree-optimization/42438
18068         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18069         contains_may_not_return_call flag.
18070         (BB_MAY_NOTRETURN): New.
18071         (valid_in_sets): Trapping nary operations are not valid
18072         in blocks that may not return.
18073         (insert_into_preds_of_block): Remove check for trapping expressions.
18074         (compute_avail): Compute also BB_MAY_NOTRETURN.
18075
18076 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
18077
18078         * doc/invoke.texi: Add 2010 to copyright years.
18079
18080 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
18081
18082         * config/sparc/sparc.c: Fix formatting nits.
18083
18084 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
18085             Alexander Monakov  <amonakov@ispras.ru>
18086
18087         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18088
18089 2010-01-02  Richard Guenther  <rguenther@suse.de>
18090
18091         PR middle-end/42577
18092         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18093         (simplify_switch_using_ranges): Mark to be removed edges
18094         as non-executable.
18095
18096 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18097
18098         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18099
18100         * collect2.c (scan_libraries): Add missing argument in call to
18101         scan_prog_file.
18102
18103 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
18104
18105         PR target/42448
18106         * config/alpha/predicates.md (aligned_memory_operand): Return false
18107         for CQImode.
18108         (unaligned_memory_operand): Return true for CQImode.
18109         * config/alpha/alpha.c (get_aligned_mem): Assert that location
18110         doesn not cross aligned SImode word boundary.
18111
18112 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
18113
18114         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18115         Remove.
18116         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18117         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18118
18119 2010-01-02  Richard Guenther  <rguenther@suse.de>
18120
18121         PR lto/41597
18122         * toplev.c (compile_file): Emit LTO marker properly.  Change
18123         it to __gnu_lto_v1.
18124         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18125
18126 2010-01-01  Richard Guenther  <rguenther@suse.de>
18127
18128         PR debug/42455
18129         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18130
18131 2010-01-01  Richard Guenther  <rguenther@suse.de>
18132
18133         PR c/42570
18134         * c-decl.c (grokdeclarator): For zero-size arrays force
18135         structural equality checks as layout_type does.
18136
18137 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18138
18139         * builtins.c: Update copyright to 2010.
18140
18141 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18142
18143         PR lto/42531
18144         * lto-streamer-out.c (produce_asm): Revert the last change.
18145         (copy_function): Likewise.
18146
18147         * lto-streamer.c (lto_get_section_name): Skip any leading
18148         asterisk in name.
18149
18150 2010-01-01  Richard Guenther  <rguenther@suse.de>
18151
18152         PR middle-end/42559
18153         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18154         for LABEL_DECLs.
18155
18156 \f
18157 Copyright (C) 2010 Free Software Foundation, Inc.
18158
18159 Copying and distribution of this file, with or without modification,
18160 are permitted in any medium without royalty provided the copyright
18161 notice and this notice are preserved.